ImageGear for C and C++ on Linux v19.10 - Updated
IG_vector_data_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Vector Functions > IG_vector_data_get

This function returns the vector data interface in the lplpVectorData parameter for the given HIGEAR handle.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vector_data_get(
        HIGEAR hIGear, 
        LPVOID* lplpVectorData 
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of the image.
lplpVectorData LPVOID* Vector data.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

Indexed RGB – 8bpp;
RGB – 24 bpp.

Example:

 
Copy Code
/* C++ interface   */
IIGVectorData*   pVectorData;
AT_ERRCOUNT      nErrCount;
nErrCount = IG_vector_data_get(hIGear, (LPVOID*)& pVectorData);
        if(!nErrCount && pVectorData)
        {
        /* Rotate camera to 90 degrees in XY plane */
        pVectorData-> CameraRotate(3.14159/4, IG_DIR_XY);
        }
/* C interface */
IIGVectorData*    pVectorData;
AT_ERRCOUNT       nErrCount;
nErrCount = IG_vector_data_get(hIGear, (LPVOID*)& pVectorData);
        if(!nErrCount && pVectorData)
        {
        /* Rotate camera to 90 degrees in XY plane */
        pVectorData-> lpVtbl->CameraRotate(pVectorData, 3.14159/4, IG_DIR_XY);
        }

Remarks:

The second parameter should be converted to the IIGVectorData pointer to become an accessible for the vector data functionality.

This function can be used only for the PDF and PS vector formats with the ImageGear PDF Component attached only. See Attaching Components.