[]
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.
public static bool TryGetDeviceRGBColor(this IPdfDict dict, PdfName key, out Color value)
| 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. |
| Type | Description |
|---|---|
| bool | True if the key was found and the value could be converted to a Color, false otherwise. |