SizeX
Top  Previous  Next

Description

Returns or sets the width of the partial scan window.


Syntax


[VB]
objActiveDcam.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:

ActiveDcam1.SizeX = 512
MsgBox ActiveDcam1.SizeX
 

Remarks


Modification of the size of the video frame is available only for partial scan (Format 7) Modes. Only certain values of the width can be allowed for the partial scan window 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 width.

If the currently selected video mode represents a fixed format, the SizeX property will be readonly and will return the same value as GetWidth.