Accusoft TwainPRO 9
hImage Property
Description
Gets the Window handle to the current compressed Image, either in TIFF or JPEG format.
Property Type
Read-only property
Syntax
Visual Basic
Public Property hImage As Long
Return Type
A long value which represents the window handle to the current compressed image in TIFF or JPEG format.
Remarks
After successfully negotiating to transfer the image in a compressed format from the scanner, the StartSession method is used to scan a compressed image into the control. If the hImage value is 0, a compressed image does not exist. Use the hImage property to copy the compressed image data from the TwainPRO control to other image controls.
Example

After the assignment, the hImage property is set to zero, so you must check it by assigning it to a temporary variable as illustrated below. The following example loads a compressed image to an ImagXpress control:

Dim hImage as long

If ( TwainPRO1.ICompression <> TWCP_NONE )

hImage = TwainPRO1.hImage

If (hImage <> 0) Then

ImagXpress1.LoadBuffer(hImage )

End If

End If

See Also

TwainPro Object  | TwainPro Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback