Click or drag to resize

PdfiumFPDFColorSpace_Load Method

Load a color space from the specified PDF object.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDFColorSpace_Load(
	IntPtr document,
	IntPtr hObj,
	IntPtr hDict
)

Parameters

document  IntPtr
Handle to the document. Returned by FPDF_LoadDocument(String, String) or FPDF_CreateNewDocument function.
hObj  IntPtr
Handle to Name or Array object
hDict  IntPtr
Handle to the resource dictionary. Can be NULL.

Return Value

IntPtr
Color space object created based on the parameters and attributes specified in the hObj.
Remarks

For the Name objects, the stock color space is returned, in the same way as the FPDFColorSpace_ColorspaceFromName(String) method. If the Name is not the stock color space, the ColorSpace entry in the resource disctionary is scanned for the provided name.

The format of an Array object is [Name] for the stock color spaces and [Name, Object] for the CalGray, CalRGB, Lab, ICCBased, Indexed, Separation, DeviceN and Pattern color spaces.

See Also