Home > Function descriptions > History back  Previous chapter  Next chapter  Print  

GetIFFormatList

uEye ActiveX Manual Version 4.00

GetIFFormatList

Syntax

VARIANT GetIFFormatList()

Description

GetIFFormatList() returns a list of all image formats supported by the sensor

Hinweis

This function is currently only supported by the USB uEye XS camera model.

Parameters

<none>

Return values

IS_SUCCESS

Function executed successfully

IS_NO_SUCCESS

General error message

Related functions

GetIFNumberFormats()

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


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com