SEGMENTDATA

typedef struct _tagSEGMENTDATA
{
   L_UINT uStructSize;
   RECT rcBitmapSeg;
   L_UINT uType;
} SEGMENTDATA,  * pSEGMENTDATA;

The SEGMENTDATA structure contains segment information.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

rcBitmapSeg

Segment boundaries from the original bitmap.

uType

Flag that indicates the type of segment. Possible values are:

 

Value

Meaning

 

SEGTYPE_BACKGROUND

[0x01] Segment is a background (The most prevalent color in the document is considered to be the background color.).

 

SEGTYPE_ONECOLOR

[0x02] Segment is a one color.

 

SEGTYPE_TEXT_1BIT_BW

[0x03] Segment is 1-bit black and white text.

 

SEGTYPE_TEXT_1BIT_COLOR

[0x04] Segment is 1 bit colored text.

 

SEGTYPE_TEXT_2BITBW

[0x05] Segment is 2-bit black and white text.

 

SEGTYPE_TEXT_2BIT_COLOR

[0x06] Segment is 2 bit colored text.

 

SEGTYPE_GRAYSCALE_2BIT

[0x07] Segment is 2-bit grayscale.

 

SEGTYPE_GRAYSCALE_8BIT

[0x08] Segment is 8-bit grayscale.

 

SEGTYPE_PICTURE

[0x09] Segment is an image.

Comments

pSEGMENTDATA is a pointer to a SEGMENTDATA structure. Where the message parameter type is pSEGMENTDATA, you can declare a SEGMENTDATA variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pSEGMENTDATA variable is necessary only if your program requires a pointer.

This structure describes the data of a segment (image portion).

SEGMENTDATA is used with the following function:

LSegment::MrcEnumSegmentsCallBack

LSegment::MrcSetSegmentData

LSegment::MrcCreateNewSegment