Returns or sets the horizontal offset of the partial scan window.
Syntax
[VB]
objActiveGige.OffsetX [= Value] [C/C++]
HRESULT get_OffsetX( long *pOffsetX );
HRESULT put_OffsetX( long OffsetX );
Data Type [VB]
Long
Parameters [C/C++]
pOffsetX [out,retval]
Pointer to the currently set horizontal offset
SizeX [in]
The horizontal offset to be set
Return Values
S_OK
Success
E_FAIL
Failure.
E_INVALIDARG
Invalid property value.
Example
This VB example sets the horizontal offset of the video window to 64:
ActiveGige1.OffsetX = 64
MsgBox ActiveGige1.OffsetX
Remarks
This property allows you to set the horizontal offset of the top left corner of the scan window in pixels. Only certain values OffsetX can be allowed depending on the camera. If the property is set to a value which is not supported by the camera, it will be reset to the nearest allowable one.