SEGMENTINFO

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.

Members

RECT rcSegmentRect

RECT structure that contains the dimensions and position of the segment in an image.

L_UINT uSegmentType

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.

COLORREF rgbColors

Array which specifies the colors being used by this segment, which is available only for the following segment types:

L_UINT uColorsCount

Number of valid colors in the array of colors specified by rgbColors.

Comments

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:

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

LEADTOOLS Mixed Raster Content (MRC) C API Help