Usage
LoadWangAnnotations (WangData As LONGLONG, WangDataSize As Long, PageNumber As Long, DPIX As Long, DPIY As Long) As Boolean
Description
Loads Wang Annotations from binary data in memory, converting it to a Black Ice annotation object. Wang annotations are stored in a separate TIFF tag for each page, so the LoadWangAnnotations function loads binary Wang data that belongs to a single page, appending it to the existing annotation object.
Parameters
WangData |
LONGLONG |
Pointer to memory containing the binary Wang annotation data.
|
WangDataSize |
Long |
Size of the Wang annotation data in bytes.
|
PageNumber |
Long |
The page number this annotation data belongs to. Wang annotations are stored in a separate tag for each page. Black Ice annotations are stored in a single tag, and each annotation has a page number property, so the page number must be specified when converting the Wang annotations to Black Ice annotations.
|
DPIX |
Long |
The horizontal resolution of the TIFF image, the Wang annotation belongs to.
|
DPIY |
Long |
The vertical resolution of the TIFF image the Wang annotation belongs to. |
Return value
True if successful, otherwise False.
Programming Notes
Currently the following Wang annotation types are supported:
· Freehand Line
· Highlighter
· Straight Line
· Hollow Rectangle
· Filled Rectangle
· Typed Text
· Attach-a-note
· Text from file
· Rubber Stamps (Converted to a Black Ice Image or Text annotation based on the type)
· Initials (Converted to a Black Ice Text annotation)
· Hollow Polygon
· Filled Polygon
· Auto Polygon (Converted to a regular Polygon type)
Code Example
None