Click or drag to resize

PdfiumFPDFColorSpace_SetRGB Method

Set the RGB component values to 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_SetRGB(
	IntPtr colorSpace,
	out float[] color,
	float R,
	float G,
	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
Gets the color defined in the specified colorSpace.
R  Single
The Red component to set to the specified color.
G  Single
The Green component to set to the specified color.
B  Single
The Blue component to set to the specified color.

Return Value

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