ImageGear for C and C++ on Linux v18.8 - Updated
IG_PDE_image_get_data
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_IMAGE > IG_PDE_image_get_data

Gets an image's data.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_image_get_data (
        HIG_PDE_IMAGE hImage,
        LONG nFlags,
        LPBYTE lpData 
);

Arguments:

Name Type Description
hImage HIG_PDE_IMAGE Image whose data is obtained.
nFlags LONG Unused, must be 0.
lpData LPBYTE Image data. If the data is decoded, lpData must be large enough to contain the number of bytes specified in the AT_PDE_IMAGEATTRS structure obtained by IG_PDE_image_get_attrs. If the data is encoded, lpData must be large enough to contain the number of bytes in the lpnEncodedLen parameter obtained by IG_PDE_image_is_data_encoded.

Remarks:

If the image is a XObject image, data is always returned as decoded data.

See the note about inline images under IG_PDE_image_is_data_encoded.

Supported Raster Image Formats:

This function does not process image pixels.

Return Value:

Error count.