ImageGear for C and C++ on Windows v19.10 - Updated
IG_vect_raster_init
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Raster Functions > IG_vect_raster_init

This function initializes the raster entity with the new width and height and allocates memory for the color data.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_raster_init(
        HIG_VECT_ENTITY hEntity, 
        long nWidth, 
        long nHeight
);

Arguments:

Name Type Description
hEntity HIG_VECT_ENTITY Raster entity handle.
nWidth long New raster width.
nHeight long New raster height.

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