Xojo Conferences

DynaPDF Manual - Page 344

Previous Page 343   Index   Next Page 345

Function Reference
Page 344 of 767
SI32 pdfGetColorSpace(
const PPDF* IPDF) // Instance pointer
typedef enum
= 0,
csDeviceCMYK = 1,
csDeviceGray = 2
The function returns the active color space.
SI32 pdfGetColorSpaceCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of color space objects which are used in the current document.
Color spaces can be accessed with GetColorSpaceObj().
LBOOL pdfGetColorSpaceObj(
const PPDF* IPDF)
// Instance pointer
UI32 Handle,
// Color space handle
struct TPDFColorSpaceObj* CS) // Structure to be filled
struct TPDFColorSpaceObj
TExtColorSpace Type;
TExtColorSpace Alternate; // Alternate or base space of Indexed or Pattern color spaces.
void* IAlternate; // Optional alternate color space.
BYTE* Buffer;
// ICC profile or color table of an Indexed color space.
UI32 BufSize;
// Buffer length in bytes.
float* BlackPoint; // CIE black point. If set, the array contains exactly 3 values.
float* WhitePoint; // CIE white point. If set, the array contains exactly 3 values.
float* Gamma;
// If set, one value per component.
float* Range;
// min/max per component or .a .b components of a Lab color space.
float* Matrix;
// XYZ matrix. If set, the array contains exactly 9 values.
UI32 NumInComponents;
// Number of input components.
UI32 NumOutComponents; // Number of output components.
UI32 NumColors;
// HiVal + 1. Indexed color space only.
BYTE* Colorants[32];
// Colorant names (Separation, DeviceN, and NChannel only).
UI32 ColorantsCount;
// The number of colorants in the array.
BYTE* Metadata;
// Optional XMP metadata stream -> ICCBased only.
UI32 MetadataSize;
// Metadata length in bytes.
void* IFunction;
// Pointer to function object -> Special color spaces only
void* IAttributes;
// Optional attributes of DeviceN or NChannel color spaces
void* IColorSpaceObj;
// Pointer of the corresponding color space object
void* Reserved01;

Previous topic: GetColorSpaceObj

Next topic: GetContent