This function creates a new instance of image annotation (IG_ARTX_IMAGE_REFERENCE).
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_ARTX_image_reference_create( LPAT_RECTANGLE pRectangle, HIGEAR hGear, enumIGOrientationModes nOrientation, enumFitModes nFitMode, enumAlignModes nAlignmentH, enumAlignModes nAlignmentV, AT_FLOAT dAspectRatio, LPSTR lpszFileName, LPAT_RGBQUAD pTransparentColor, HIG_ARTX_IMAGE_REFERENCE lphMark ); |
Arguments:
pRectangle | Annotation bounding rectangle. |
hGear | Handle of the image to associate with the new annotation. A copy of the 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, the 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:
This function does not process image pixels.