ImageGear for C and C++ on Windows v19.1 - Updated
IG_vect_geom_get_pointcount
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Geometry Functions > IG_vect_geom_get_pointcount

The function returns the total point count of the geometry.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_geom_get_pointcount(
        HIG_VECT_ENTITY hEntity, 
        long* lpPointCount
);

Arguments:

Name Type Description
hEntity HIG_VECT_ENTITY Geometry entity handle.
lpPointCount long* Buffer for the point count of the geometry.

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:

The return value is also corresponds to the color count and (or) normal count if the arguments bUseColors and/or bUseNormals of IG_vect_geom_init() was set to VECT_TRUE.