[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetDeviceRGBColor

TryGetDeviceRGBColor Method

TryGetDeviceRGBColor(IPdfDict, PdfName, out Color)

Tries to get the RGB Color associated with the specified key (in a PDF an RGB Color should be represented as an array of 3 floats).

Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to Color.

Declaration
public static bool TryGetDeviceRGBColor(this IPdfDict dict, PdfName key, out Color value)
Public Shared Function TryGetDeviceRGBColor(dict As IPdfDict, key As PdfName, ByRef value As Color) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to get.

Color value

OUT: the value associated with the specified key.

Returns
Type Description
bool

True if the key was found and the value could be converted to a Color, false otherwise.