GetWidthMax
Top  Previous  Next

Description

Returns the maximum available horizontal size of the video frame.


Syntax


[VB]
Value=objActiveGige.GetWidthMax()


[C/C++]
HRESULT GetWidthMax(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 maximum video width and height to initialize slider controls:

Private Sub
 Form_Load()

Slider1.Min = 0
Slider1.Max = ActiveGige1.GetWidthMax
Slider2.Min = 0
Slider2.Max = ActiveGige1.GetHeightMax
Slider1.Value = ActiveGige1.SizeX
Slider2.Value = ActiveGige1.SizeY
End Sub

 

Remarks


This method allows you to determine the maximum width of the video frame for the currently selected horizontal Binning and Decimation. If Binning and Decimation are set to 1, the maximum width of the video frame is typically equal to the horizontal resolution of the sensor.