DynaPDF Manual - Page 346

Previous Page 345   Index   Next Page 347

Function Reference
Page 346 of 770
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;
void* Reserved02;
void* Reserved03;
void* Reserved04;
void* Reserved05;
void* Reserved06;
void* Reserved07;
void* Reserved08;
void* Reserved09;
};
The function retrieves the most important properties of a color space. The parameter handle must be
a valid handle of a color space. A color space handle is a simple array index. The number of color
spaces is returned by the function GetColorSpaceCount().Reserved fields of the structure
TPDFColorSpaceObj must be initialized with NULL.
The alternate color space of special color spaces can be accessed with GetColorSpaceObjEx(). The
attributes of a DeviceN or NChannel color space can be accessed with GetDeviceNAttributes().
Note that the range of a Lab color space consists only of four values because the L component has a
fixed range from 0 through 100.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetColorSpaceObjEx
Syntax:
LBOOL pdfGetColorSpaceObjEx(
const PPDF* IColorSpace,
// Pointer of a color space object
struct TPDFColorSpaceObj* CS) // Structure to be filled
The function retrieves the most important properties of a color space like GetColorSpaceObj() but
accepts a pointer of a color space object instead. See also GetColorSpaceObj().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: GetColorSpace, GetColorSpaceCount, GetColorSpaceObj

Next topic: GetCompressionFilter, GetCompressionLevel, GetContent