ImageGear for C and C++ on Windows v20.0 - Updated
IG_vect_ent_get_attrib
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Entity Functions > IG_vect_ent_get_attrib

The function returns a pointer to the optional attribute specified by the parameter nAttrib.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_ent_get_attrib(
        HIG_VECT_ENTITY hEntity, 
        enumIGVectAttrib nAttrib,
        VOID** lplpAttribPtr
);

Arguments:

Name Type Description
hEntity HIG_VECT_ENTITY Handle to the Entity.
nAttrib enumIGVectAttrib The constant specifying which attribute should be returned.
lpAttribPtr VOID** Buffer that receives a pointer or handle to the attribute. Buffer type depends on the nAttrib parameter.

The attribute type is associated with the buffer type as follows:

Attribute Type Buffer Type
IG_VECT_ENT_ATTR_DRAWCOLOR IGVectColorEx*
IG_VECT_ENT_ATTR_FILLCOLOR IGVectColorEx*
IG_VECT_ENT_ATTR_LINETYPEINDEX long*
IG_VECT_ENT_ATTR_THICKNESS float*
IG_VECT_ENT_ATTR_FILLTYPEINDEX long*
IG_VECT_ENT_ATTR_OFFSET IGPoint3D*
IG_VECT_ENT_ATTR_ROTATION HIG_VECT_ROTATION
IG_VECT_ENT_ATTR_SCALE IGPoint3D*
IG_VECT_ENT_ATTR_POSITION IGPoint3D*

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

Is this page helpful?
Yes No
Thanks for your feedback.