ImageGear Professional DLL v17.2 for Windows
IG_vect_textobj_get_textwidth
Send Feedback
ImageGear Professional DLL v17.2 for Windows > API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Text Object Functions > IG_vect_textobj_get_textwidth

Glossary Item Box

This function calculates the actual width of the text string, taking into account the current Text Object settings.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_textobj_get_textwidth(
        HIG_VECT_TEXTOBJ hTextobj, 
        LPCHAR lpText, 
        float* lpWidth
);

Arguments:

Name Type Description
hTextobj HIG_VECT_TEXTOBJ Handle to the Text Object.
lpText LPCHAR Text string to calculate actual width. If this parameter is NULL, then the width is calculated for the text assigned to the text object.
lpWidth float Buffer for the width being calculated.

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

©2012. Accusoft Corporation. All Rights Reserved.