SizeX
Top  Previous  Next

Description

Returns or sets the width of the partial scan window.


Syntax


[VB]
objActiveGeni.SizeX [= Value]


[C/C++]
HRESULT get_SizeX( long *pSizeX );
HRESULT put_SizeX( long SizeX );



Data Type
[VB]

Long


Parameters
[C/C++]

pSizeX [out,retval]  
Pointer to the currently selected image width  
SizeX [in]  
The image width to be selected  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  
E_INVALIDARG  
Invalid property value.  
 

Example


This VB example sets the current image width to 512:

ActiveGeni1.SizeX = 512
MsgBox ActiveGeni1.SizeX
 

Remarks


This property allows you to set the horizontal size of the scan window in pixels. Only certain values of the width can be allowed for the partial scan window depending on the camera. If SizeX is set to a value which is not supported by the camera, it will be reset to the nearest allowable width. This property is directly associated with the Width feature of the camera.