SEGMENTINFO (original) (raw)

Summary

The SEGMENTINFO structure provides information about a segment in PDF Compressor.

Syntax

typedef struct _SEGMENTINFO { [RECT](../../main/api/windows-structures.html) rcSegmentRect; [L_UINT](../../main/api/leadtools-basic-data-types.html) uSegmentType; [COLORREF](../../main/api/windows-structures.html) rgbColors[4]; [L_UINT](../../main/api/leadtools-basic-data-types.html) uColorsCount; } SEGMENTINFO, * LPSEGMENTINFO;

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.

Usage