| Home > Function descriptions > | History back Previous chapter Next chapter Print |
GetIFFormatList |
|
uEye ActiveX Manual Version 4.00
Syntax
VARIANT GetIFFormatList()
Description
GetIFFormatList() returns a list of all image formats supported by the sensor
|
|
Parameters
<none>
Return values
IS_SUCCESS |
Function executed successfully |
IS_NO_SUCCESS |
General error message |
Related functions
C++ Example
LONG nNumberOfImageFormats = AxuEyeCam.GetIFNumberFormats();
VARIANT variantFormatList = AxuEyeCam.GetIFFormatList();
SAFEARRAY *pArrayFormatList = variantFormatList.parray;
INT* arrayFormatList = NULL;
SafeArrayAccessData(pArrayFormatList, (void**)&arrayFormatList);
for (int i = 0; i < nNumberOfImageFormats; i++)
{
INT id = arrayFormatList[i * 6 + 0];
INT width = arrayFormatList[i * 6 + 1];
INT height = arrayFormatList[i * 6 + 2];
INT x = arrayFormatList[i * 6 + 3];
INT y = arrayFormatList[i * 6 + 4];
INT modes = arrayFormatList[i * 6 + 5];
}
SafeArrayDestroy(pArrayFormatList);
C# Example
int nNumberOfImageFormats = axuEyeCam.GetIFNumberFormats();
int[] arrayFormatList = (int[])axuEyeCam.GetIFFormatList();
for (int i = 0; i < nNumberOfImageFormats; i++)
{
int id = arrayFormatList[i * 6 + 0];
int width = arrayFormatList[i * 6 + 1];
int height = arrayFormatList[i * 6 + 2];
int x = arrayFormatList[i * 6 + 3];
int y = arrayFormatList[i * 6 + 4];
int modes = arrayFormatList[i * 6 + 5];
}
VB Example
Dim nNumberOfImageFormats As Integer = AxuEyeCam.GetIFNumberFormats()
Dim arrayFormatList As Array = AxuEyeCam.GetIFFormatList()
Dim j As Integer
For j = 0 To nNumberOfImageFormats - 1
Dim id As Integer = arrayFormatList.GetValue(j * 6 + 0)
Dim width As Integer = arrayFormatList.GetValue(j * 6 + 1)
Dim height As Integer = arrayFormatList.GetValue(j * 6 + 2)
Dim x As Integer = arrayFormatList.GetValue(j * 6 + 3)
Dim y As Integer = arrayFormatList.GetValue(j * 6 + 4)
Dim modes As Integer = arrayFormatList.GetValue(j * 6 + 5)
Next j