ImageGear Professional v18.2 > 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.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_layer_get_attrib( HIG_VECT_LAYER hLayer, enumIGVectAttrib nAttrib, VOID** lplpAttribPtr ); |
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* |
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
None