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

This function gets a pointer to the optional attribute specified by the parameter nAttrib.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_layer_get_attrib(
        HIG_VECT_LAYER hLayer, 
        enumIGVectAttrib nAttrib, 
        VOID** lplpAttribPtr
);

Arguments:

Name Type Description
hLayer HIG_VECT_LAYER Handle to the Layer.
nAttrib enumIGVectAttrib 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*

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