typedef struct _SEGMENTINFO{RECT rcSegmentRect;L_UINT uSegmentType;COLORREF rgbColors[4];L_UINT uColorsCount;} SEGMENTINFO, *LPSEGMENTINFO;
The SEGMENTINFO structure provides information about a segment in PDF Compressor.
RECT structure that contains the dimensions and position of the segment in an image.
A value that specifies the segment type. Possible values are:
| Value | Meaning |
|---|---|
| SEGMENT_BACKGROUND | Background segment. |
| SEGMENT_ONEBIT | 1-bit per pixel segment. |
| SEGMENT_ONEBITBW | 1-bit per pixel black and white segment. |
| SEGMENT_TWOBIT | 2-bits per pixel segment. |
| SEGMENT_TWOBITGRAY | 2-bits per pixel grayscale segment. |
| SEGMENT_GRAY | Grayscale segment. |
| SEGMENT_PICTURE | Picture segment |
| SEGMENT_TWOBITBW | 2-bits per pixel black and white segment |
| SEGMENT_ONECOLOR | The segment has one color. |
Array which specifies the colors being used by this segment, which is available only for the following segment types:
SEGMENT_BACKGROUNDSEGMENT_ONEBITSEGMENT_ONEBITBWSEGMENT_TWOBITSEGMENT_TWOBITGRAYSEGMENT_TWOBITBWSEGMENT_ONECOLOR
Number of valid colors in the array of colors specified by rgbColors.
LPSEGMENTINFO is a pointer to a SEGMENTINFO structure. Where the function parameter type is LPSEGMENTINFO, you can declare a SEGMENTINFO variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a LPSEGMENTINFO variable is necessary only if your program requires a pointer.
This structure is used by the following functions: