 | PdfiumFPDFColorSpace_GetRGB Method |
Get the sRGB component values of 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_GetRGB(
IntPtr colorSpace,
float[] color,
out float R,
out float G,
out float B
)
Public Shared Function FPDFColorSpace_GetRGB (
colorSpace As IntPtr,
color As Single(),
<OutAttribute> ByRef R As Single,
<OutAttribute> ByRef G As Single,
<OutAttribute> ByRef B As Single
) As Boolean
public:
static bool FPDFColorSpace_GetRGB(
IntPtr colorSpace,
array<float>^ color,
[OutAttribute] float% R,
[OutAttribute] float% G,
[OutAttribute] float% B
)
static member FPDFColorSpace_GetRGB :
colorSpace : IntPtr *
color : float32[] *
R : float32 byref *
G : float32 byref *
B : float32 byref -> bool
public static boolean FPDFColorSpace_GetRGB(
IntPtr colorSpace,
float[] color,
/** @attribute OutAttribute */ /** @ref */float R,
/** @attribute OutAttribute */ /** @ref */float G,
/** @attribute OutAttribute */ /** @ref */float B
)
Patagames.Pdf.Pdfium.FPDFColorSpace_GetRGB = 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
- 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
Booleanfalse if any error occurred.
RemarksThe components of the specified color are translated to the
DeviceRGB color space.
See Also