ImageGear for C and C++ on Windows v19.6 - Updated
IG_vect_geom_set_colors
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Geometry Functions > IG_vect_geom_set_colors

This function sets the colors in the range of nStart..nEnd.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_geom_set_colors(
        HIG_VECT_ENTITY hEntity, 
        unsigned char* lpColors,
        long nStart,
        long nEnd
);

Arguments:

Name Type Description
hEntity HIG_VECT_ENTITY Geometry entity handle.
lpColors unsigned char* Buffer with the colors to be set.
nStart long Start color to be set.
nEnd long End color to be set.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Remarks:

Using this function makes sense only if bUseColors argument was set to VECT_TRUE during the geometry initialization. The color component number must correspond to the nColorAlign argument of IG_vect_geom_init().