ImageGear for C and C++ on Linux v18.8 - Updated
AT_PDF_COLORVALUE
API Reference Guide > PDF Component API Reference > PDF Component Structures Reference > AT_PDF_COLORVALUE

Data structure representing a color.

Declaration:

 
Copy Code
typedef struct tagAT_PDF_COLORVALUE
{
       BYTE space;
       AT_PDF_FIXED value[4];
 
} AT_PDF_COLORVALUE;
typedef AT_PDF_COLORVALUE FAR* LPAT_PDF_COLORVALUE;

Members:

Name Type Description
space BYTE The color space type. Can be one of the following:
  • IG_PDF_DEVICE_GRAY. Grayscale color specification. Requires 1 value entry to specify the color.
  • IG_PDF_DEVICE_RGB. Red-Green-Blue color specification. Requires 3 value entries to specify the color.
  • IG_PDF_DEVICE_CMYK. Cyan-Magenta-Yellow-Black color specification. Requires 4 value entries to specify the color.
value AT_PDF_FIXED[4] The color value. The number of elements needed in the value field depends on the color space type (specified in the space field):
  • IG_PDF_DEVICE_GRAY - 1 value
  • IG_PDF_DEVICE_RGB - 3 values
  • IG_PDF_DEVICE_CMYK - 4 values