Pointer to the SAFEARRAY of strings containing available formats
This VB example initializes a combo box with the descriptions of available pixel formats and uses it to select a specific format:
Private Sub Form_Load()
FmtLst = ActiveGige1.GetFormatList
For i = 0 ToUBound(FmtLst)
Combo1.ListIndex = 0
ActiveGige1.Acquire = True
Private Sub Combo1_Click()
ActiveGige1.Format = Combo1.ListIndex
This MFC example fills out a combo box with available video Formats:
The format list is built in the acceding order by browsing through all pixel formats supported by the current camera. The index of an element in the Format list can be used as an argument of the Format property to select a specific pixel format.
Note that in C/C++ applications it is required to call SafeArrayDestroy() to delete the SAFEARRAY returned by GetFormatList.