ImageGear for C and C++ on Linux v18.8 - Updated
IG_vector_data_to_dib
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Vector Functions > IG_vector_data_to_dib

This function flushes the vector data to DIB.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vector_data_to_dib(
        HIGEAR hIGearSource, 
        LPHIGEAR lphIGearDest 
);

Arguments:

Name Type Description
hIGearSource HIGEAR Source image handle.
lphIGearDest LPHIGEAR New image - non-zero pointer to HIGEAR that takes a raster HIGEAR.

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.

Vector

Example:

 
Copy Code
HIGEAR rasterhigear;
IG_vector_data_to_dib(hIGear, &rasterhigear);
IG_image_delete(hIGear);
hIGear = rasterhigear;

Remarks:

The second parameter must be a non-zero pointer to HIGEAR that takes a raster HIGEAR. The source HIGEAR should be deleted manually.