DynaPDF Manual - Page 382

Previous Page 381   Index   Next Page 383

Function Reference
Page 382 of 839
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.
GetCompressionFilter
Syntax:
SI32 pdfGetCompressionFilter(
const PPDF* IPDF) // Instance pointer
typedef enum
{
cfFlate = 0,
cfJPEG
= 1,
cfJP2K
= 7
}TCompressionFilter;
The function returns the standard compression filter for images. Note that 1 bit images are always
compressed with Flate.
 

Previous topic: GetColorSpaceCount, GetColorSpaceObj

Next topic: GetCompressionLevel, GetContent