ImageGear for C and C++ on Windows v19.4 - Updated
IG_ARTX_button_create
API Reference Guide > ArtX Component API Reference > ArtX Component Objects Reference > HIG_ARTX_BUTTON > IG_ARTX_button_create

This function creates a new instance of Button annotation (IG_ARTX_MARK_BUTTON).

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_ARTX_button_create(
        LPAT_RECTANGLE pRectangle,
        LPSTR lpszText,
        LPAT_ARTX_FONT lpFont,
        LPAT_RGBQUAD pFillColor,
        LPAT_RGBQUAD pTextColor,
        AT_INT nOpacity,
        LPHIG_ARTX_MARK lphMark
);

Arguments:

Name Type Description
pRectangle LPAT_RECTANGLE Annotation bounding rectangle.
lpszText LPSTR Text string drawn on button.
lpFont LPAT_ARTX_FONT Attributes of font to be used for text drawing.
pFillColor LPAT_RGBQUAD Button fill color.
pTextColor LPAT_RGBQUAD Text color.
nOpacity AT_INT Annotation opacity value.
lphMark LPHIG_ARTX_MARK 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: