ImageGear Professional DLL v17.1 for Windows Accusoft
IG_ARTX_text_create
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > ArtX Component API Reference > ArtX Component Objects Reference > HIG_ARTX_TEXT > IG_ARTX_text_create

Glossary Item Box

This function creates a new instance of Text annotation (HIG_ARTX_MARK_TEXT).

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_ARTX_text_create(
        LPAT_RECTANGLE pRectangle,
        LPSTR lpszText,
        enumIGArtXTextType nTextType,
        LPAT_ARTX_FONT lpFont,
        LPAT_ARTX_BORDER pBorder,
        AT_INT32 nBorderShading,
        LPAT_RGBQUAD pFillColor,
        LPAT_RGBQUAD pTextColor,
        AT_INT nOpacity,
        LPAT_ARTX_PIN pTextPin,
        LPAT_ARTX_CALLOUT pCallout,
        LPHIG_ARTX_MARK lphMark
);

Arguments:

pRectangle Pointer to the annotation bounding rectangle.
lpszText The annotation text string.
nTextType The annotation text type. See enumIGArtXTextType.
lpFont Pointer to the annotation text font.
pBorder Pointer to the annotation border style.
nBorderShading The annotation border shadow toggle. Valid values include TRUE and FALSE.
pFillColor Pointer to the annotation fill color. Specify NULL if fill color is transparent.
pTextColor Pointer to the annotation text color. Specify NULL if text color is transparent.
nOpacity The annotation opacity. Valid values are 0 to 255.
pTextPin Pointer to the annotation pin icon to draw over text. Specify NULL if the annotation lacks a pin.
pCallout Pointer to the annotation callout attributes. Specify NULL if the annotation lacks a callout.
lphMark Pointer to storage that is overwritten with the new annotation handle.

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.

Remarks:

Upon successful completion: 

©2012. Accusoft Corporation. All Rights Reserved.