ImageGear for C and C++ on Windows v19.1 - Updated
IG_PDE_image_set_decode_array
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_IMAGE > IG_PDE_image_set_decode_array

Sets the decode array of an image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_image_set_decode_array (
        HIG_PDE_IMAGE hImage,
        LPAT_PDF_FIXED lpDecode, 
        LONG nDecodeSize 
);

Arguments:

Name Type Description
hImage HIG_PDE_IMAGE Image whose decode array is set.
lpDecode LPAT_PDF_FIXED Pointer to the decode array.
nDecodeSize LONG Size of decode array in bytes.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Normally, the decode array is accessed through the decode field in the AT_PDE_IMAGEATTRS structure. However, this function defines a decode array to handle images with a color space that has more than 4 components.