The SEGMENTDATA structure contains segment information.


typedef struct _tagSEGMENTDATA 
   L_UINT uStructSize; 
   RECT rcBitmapSeg; 
   L_UINT uType; 


L_UINT uStructSize

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

RECT rcBitmapSeg

Segment boundaries from the original bitmap.

L_UINT uType

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

Value Meaning
SEGTYPE_BACKGROUND [0x07] Segment is a background (The most prevalent color in the document is considered to be the background color.).
SEGTYPE_ONECOLOR [0x08] Segment is a one color.
SEGTYPE_TEXT_1BIT_BW [0x01] Segment is 1-bit black and white text.
SEGTYPE_TEXT_1BIT_COLOR [0x02] Segment is 1 bit colored text.
SEGTYPE_TEXT_2BITBW [0x09] Segment is 2-bit black and white text.
SEGTYPE_TEXT_2BIT_COLOR [0x03] Segment is 2 bit colored text.
SEGTYPE_GRAYSCALE_2BIT [0x04] Segment is 2-bit grayscale.
SEGTYPE_GRAYSCALE_8BIT [0x05] Segment is 8-bit grayscale.
SEGTYPE_PICTURE [0x06] Segment is an image.


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).


Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS MRC C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.