SizeY
Top  Previous  Next

Description

Returns or sets the height of the partial scan window.


Syntax


[VB]
objActiveGige.SizeY [= Value]


[C/C++]
HRESULT get_SizeY( long *pSizeY );
HRESULT put_SizeY( long SizeY );



Data Type
[VB]

Long


Parameters
[C/C++]

pSizeY [out,retval]  
Pointer to the currently selected image height  
SizeY [in]  
The image height to be selected  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  
E_INVALIDARG  
Invalid property value.  
 

Example


This VB example sets the current image height to 512:

ActiveGige1.SizeY = 512
MsgBox ActiveGige1.SizeY
 

Remarks


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

Note that if images are transmitted by a linescan camera, the actual vertical size of each image can vary and be less than SizeY. In this case SizeY will represent the maximum vertical size of the scan window, while the actual vertical size of the current image can be obtained by calling GetHeight.