Gets the Window handle to the current compressed Image, either in TIFF or JPEG format.
Read-only property
Visual Basic |
---|
Public Property hImage As Long |
A long value which represents the window handle to the current compressed image in TIFF or JPEG format.
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.
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