Attribute Structure

typedef struct tagOIAN_MARK_ATTRIBUTES{

UINT uType;// The type of the mark.
// 1 = Image embedded
// 2 = Image reference
// 3 = Straight line
// 4 = Freehand line
// 5 = Hollow rectangle
// 6 = Filled rectangle
// 7 = Typed text
// 8 = Text from file
// 9 = Text stamp
//10 = Attach-a-Note
//12 = Form
//13 = OCR region

LRECT lrBounds;// Rectangle in FULLSIZE units; equivalent to type RECT.
// Can be a rectangle or two points.

RGBQUAD rgbColor1;// The main color; for example, the color of all lines,
// all rectangles, and standalone text.

RGBQUAD rgbColor2;// The secondary color; for example, the color of the text of
// an Attach-a-Note.

BOOL bHighlighting;// TRUE — The mark is drawn highlighted. Highlighting
// performs the same function as a highlighting marker on a
// piece of paper. Valid only for lines, rectangles, and
// freehand.

BOOL bTransparent;// TRUE — The mark is drawn transparent. A transparent
// mark does not draw white pixels. That is, transparent
// replaces white pixels with whatever is behind those pixels.
// Available only for images.

UINT uLineSize;// The width of the line in pixels.

UINT uReserved1;// Reserved; must be set to 0.

UINT uReserved2;// Reserved; must be set to 0.

LOGFONT lfFont;// The font information for the text, consisting of standard
// font attributes of font size, name, style, effects, and
// background color.

DWORD bReserved3;// Reserved; must be set to 0.

time_t Time;// The time that the mark was first saved, in seconds, from
// 00:00:00 1-1-1970 GMT. Every annotation mark has
// time as one of its attributes. If you do not set the time before
// the file is saved, the time is set to the date and time that the
// save was initiated. This time is in the form returned by the
// "time" C call, which is the number of seconds since
// midnight 00:00:00 on 1-1-1970 GMT. If necessary, refer
// to your C documentation for a more detailed description.

BOOL bVisible;// TRUE — The mark is currently set to be visible.
// Annotation marks can be visible or hidden.

DWORD dwReserved4;// Reserved; must be set to 0x0FF83F.

long lReserved[10];// Must be set to 0.

}OIAN_MARK_ATTRIBUTES;

Note: The OCR region annotation type is available with Imaging for Windows Professional Edition only.