This function creates a new instance of image annotation (IG_ARTX_MARK_IMAGE).
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_ARTX_image_create( LPAT_RECTANGLE pRectangle, HIGEAR hGear, enumIGOrientationModes nOrientation, enumFitModes nFitMode, enumAlignModes nAlignmentH, enumAlignModes nAlignmentV, AT_FLOAT dAspectRatio, LPSTR lpszFileName, LPAT_RGBQUAD pTransparentColor, LPHIG_ARTX_IMAGE lphMark ); |
Arguments:
pRectangle | Annotation bounding rectangle. |
hGear | Handle of image to associate with new annotation. Copy of image is created and stored. This parameter can be NULL. |
nOrientation | Specifies orientation of image within annotation bounding rectangle. See enumIGOrientationModes. |
nFitMode | Specifies fit mode of image. |
nAlignmentH | Specifies horizontal alignment of image. See enumAlignModes. |
nAlignmentV | Specifies vertical alignment of image. See enumAlignModes. |
dAspectRatio | Specifies image aspect ratio. |
lpszFileName | Specifies name of file with image to associate with annotation. If hGear is not NULL, then lpszFileName is ignored. Otherwise image from lpszFileName FILE is used. |
pTransparentColor | Specifies transparent color. |
lphMark | Pointer to storage for new annotation handle. |
Return Value:
Error count.
Supported Raster Image Formats:
All pixel formats supported by ImageGear Professional.