ImageGear for C and C++ on Windows v19.3 - Updated
IG_vect_drwng_create_entity
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Drawing Functions > IG_vect_drwng_create_entity

The function creates an entity of the specified type and assigns a specified ID to it.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_drwng_create_entity(
        HIG_VECT_DRWNG hDrwng,
        enumIGVectEntities nType,
        LPCHAR lpId,
        HIG_VECT_ENTITY* lpEntity
);

Arguments:

Name Type Description
hDrwng HIG_VECT_DRWNG Handle to the Drawing.
nType enumIGVectEntities Type of the entity to be created.
lpId LPCHAR Entity identifier being assigned.
lpEntity HIG_VECT_ENTITY* Buffer for the handle to the newly created entity.

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