ImageGear for C and C++ on Windows v19.1 - Updated
IG_ARTX_richtext_create
API Reference Guide > ArtX Component API Reference > ArtX Component Objects Reference > HIG_ARTX_RICHTEXT > IG_ARTX_richtext_create

This function creates a new instance of rich text annotation (IG_ARTX_MARK_RICH_TEXT).

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_ARTX_richtext_create(
        LPAT_RECTANGLE pRectangle,
        LPSTR lpszText,
        LPAT_ARTX_BORDER pBorder,
        LPAT_RGBQUAD pFillColor,
        AT_INT nOpacity,
        LPHIG_ARTX_RICHTEXT lphMark
);

Arguments:

Name Type Description
pRectangle LPAT_RECTANGLE Annotation bounding rectangle.
lpszText LPSTR Pointer to buffer with annotation text (in RTF format).
pBorder LPAT_ARTX_BORDER Attributes of annotation border, or NULL if no border should be used.
pFillColor LPAT_RGBQUAD Annotation fill color.
nOpacity AT_INT Annotation opacity value.
lphMark LPHIG_ARTX_RICHTEXT Pointer to storage for new annotation handle.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Upon successful completion: