PdfColor.FromGray(Double) Method
Creates a color from a grayscale component value.
Namespace: DevExpress.Docs.Pdf
Assembly: DevExpress.Docs.Pdf.v26.1.dll
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| g | Double | The grayscale component value (0.0 for black to 1.0 for white). |
Returns
| Type | Description |
|---|---|
| PdfColor | A new PdfColor object. |
See Also