[]
Gets the Color associated with the specified key (in a PDF a Color should be represented as an array of 1, 3 or 4 floats).
Gets defValue if the value does not exist or cannot be converted to a Color.
public static Color GetColor(this IPdfDict dict, PdfName key, Color defValue)
| Type | Name | Description |
|---|---|---|
| IPdfDict | dict | The current dictionary. |
| PdfName | key | The key of the value to get. |
| Color | defValue | The default value. |
| Type | Description |
|---|---|
| Color | The value associated with the specified key. |
Gets the Color associated with the specified key (in a PDF a Color should be represented as an array of 1, 3 or 4 floats).
Gets defValue if the value does not exist or cannot be converted to a Color.
public static Color? GetColor(this IPdfDict dict, PdfName key, Color? defValue)
| Type | Name | Description |
|---|---|---|
| IPdfDict | dict | The current dictionary. |
| PdfName | key | The key of the value to get. |
| Color? | defValue | The default value. |
| Type | Description |
|---|---|
| Color? | The value associated with the specified key. |