Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 338

Previous Page 337   Index   Next Page 339

Function Reference
Page 338 of 750
GetColorSpace
Syntax:
SI32 pdfGetColorSpace(
const PPDF* IPDF) // Instance pointer
typedef enum
{
csDeviceRGB
= 0,
csDeviceCMYK = 1,
csDeviceGray = 2
}TPDFColorSpace;
The function returns the active color space.
GetColorSpaceCount
Syntax:
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().
GetColorSpaceObj
Syntax:
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: GetCMapCount

Next topic: GetCompressionFilter