[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetDeviceRGBColor

GetDeviceRGBColor Method

GetDeviceRGBColor(IPdfDict, PdfName, Color)

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

Gets defValue if the value does not exist or cannot be converted to a Color.

Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to a Color.
Declaration
public static Color GetDeviceRGBColor(this IPdfDict dict, PdfName key, Color defValue)
Public Shared Function GetDeviceRGBColor(dict As IPdfDict, key As PdfName, defValue As Color) As Color
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to get.

Color defValue

The default value.

Returns
Type Description
Color

The value associated with the specified key.