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.

Member Description
rcSegmentRect RECT structure that contains the dimensions and position of the segment in an image.
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.
rgbColors Array which specifies the colors being used by this segment, which is available only for the following segment types:

SEGMENT_BACKGROUND

SEGMENT_ONEBIT

SEGMENT_ONEBITBW

SEGMENT_TWOBIT

SEGMENT_TWOBITGRAY

SEGMENT_TWOBITBW

SEGMENT_ONECOLOR

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:

L_PdfCompInsertSegments

pPDFCOMP_IMAGECALLBACK

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Mixed Raster Content (MRC) C API Help