 | PdfiumFPDFColorSpace_SetRGB Method |
Set the RGB component values to the specified color defined in the specified color space.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static bool FPDFColorSpace_SetRGB(
IntPtr colorSpace,
out float[] color,
float R,
float G,
float B
)
Public Shared Function FPDFColorSpace_SetRGB (
colorSpace As IntPtr,
<OutAttribute> ByRef color As Single(),
R As Single,
G As Single,
B As Single
) As Boolean
public:
static bool FPDFColorSpace_SetRGB(
IntPtr colorSpace,
[OutAttribute] array<float>^% color,
float R,
float G,
float B
)
static member FPDFColorSpace_SetRGB :
colorSpace : IntPtr *
color : float32[] byref *
R : float32 *
G : float32 *
B : float32 -> bool
public static boolean FPDFColorSpace_SetRGB(
IntPtr colorSpace,
/** @attribute OutAttribute */ /** @ref */float[] color,
float R,
float G,
float B
)
Patagames.Pdf.Pdfium.FPDFColorSpace_SetRGB = function(colorSpace, color, R, G, 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
Booleanfalse if any error occurred.
RemarksThe RGB components are translated to the specified color space.
See Also