Click or drag to resize

PdfiumFPDFColorSpace_GetRGB Method

Get the sRGB component values of the specified color defined in the specified color space.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static bool FPDFColorSpace_GetRGB(
	IntPtr colorSpace,
	float[] color,
	out float R,
	out float G,
	out float B
)

Parameters

colorSpace  IntPtr
Handle to the color space object. Returned by FPDFColorSpace_GetStockCS(ColorTypes), FPDFColorSpace_ColorspaceFromName(String), FPDFColorSpace_GetBaseCS(IntPtr) or FPDFColorSpace_Load(IntPtr, IntPtr, IntPtr) function.
color  Single
Color defined in the specified colorSpace.
R  Single
Gets the Red component of the specified color.
G  Single
Gets the Green component of the specified color.
B  Single
Gets the Blue component of the specified color.

Return Value

Boolean
false if any error occurred.
Remarks
The components of the specified color are translated to the DeviceRGB color space.
See Also