This function sets the user data associated with mark.
Declaration:
Copy Code |
|
|---|---|
AT_ERRCOUNT IG_ARTX_mark_user_data_set(
HIG_ARTX_MARK hMark,
LPAT_VOID lpData
);
|
|
Arguments:
| Name | Type | Description |
| hMark | HIG_ARTX_MARK | Annotation handle. |
| lpData | LPAT_VOID | User data pointer. |
Return Value:
Error count.
Supported Raster Image Formats:
This function does not process image pixels.
Sample:
None
Example:
Copy Code |
|
|---|---|
|
HIG_ARTX_PAGE hArtPage = NULL; //ArtX page handle AT_CHAR szUserDataText[] = "Annotation sample Userdata"; //user data to be associated with annotation //Create new ArtX page //Create new Ellipse annotation //Add new annotation into ArtX page //Set annotation's user data attribute //save annotation data to file |
|
Remarks:
This function stores a copy of a zero-terminated character string, passed via lpData parameter, in annotation’s internal data structure.
Use IG_ARTX_mark_user_data_get() to retrieve the user data.
These functions only work with zero-terminated character strings and not with arbitrary pointers. When ArtX marks are saved to a file, user data is saved as well.