GetWidth
Top  Previous  Next

Description

Returns the maximum horizontal size of the video frame for the currently selected Format.


Syntax


[VB]
Value=objActiveDcam.GetWidth()


[C/C++]
HRESULT GetWidth(long* pValue );


Data Types
[VB]

Return value: Long


Parameters
[C/C++]

pValue [out, retval]  
Pointer to the maximum horizontal size of the video frame  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

Example


This VB example uses the minimum video width and height to initialize slider controls:

Private Sub
 Form_Load()

Slider1.Min = 0
Slider1.Max = ActiveDcam1.GetWidth
Slider2.Min = 0
Slider2.Max = ActiveDcam1.GetHeight
Slider1.Value = ActiveDcam1.SizeX
Slider2.Value = ActiveDcam1.SizeY
End Sub

 

Remarks


This method allows you to determine the maximum size of the video frame in a partial scan mode (Format_7). If the currently selected video mode represents a fixed format, the value returned by the method will be identical to the value returned by the SizeX property. See Mode for more details.