DynaPDF Manual - Page 370

Previous Page 369   Index   Next Page 371

Function Reference
Page 370 of 818
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.
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


Start Chat