ImageGear for C and C++ on Windows v20.1 - Updated
IG_vect_vertexcont_get_attrib
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Vertex Container Object Functions > IG_vect_vertexcont_get_attrib

This function gets the vertex attributes if present.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_vertexcont_get_attrib( 
        HIG_VECT_VERTEXCONT hVertexcont, 
        IGVectVertex* lpVertex,
        enumIGVectVertexData* lpAttribType, 
        FLOAT* lpAttrib
);

Arguments:

Name Type Description
hVertexcont HIG_VECT_VERTEXCONT Handle to the Vertex Container.
lpVertex IGVectVertex* Pointer to the vertex.
lpAttribType enumIGVectVertexData* Buffer for the attribute type. NULL is returned if vertex has no attributes.
LpAttrib FLOAT* Buffer for the attribute value. Null is returned if vertex has no attributes.

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

Remarks:

Currently every vertex can only have an attribute of the type float. If the vertex has an attribute, its type is returned with the parameter lpAttribType and value with lpAttrib. Otherwise, both lpAttribType and lpAttrib return NULL.

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