AccusoftTwainPro9 ActiveX DLL > TwainPro Object : hImage Property |
Visual Basic |
---|
Public Property hImage As Long |
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