Create an XColor from a grayscale value.
[C#] static XColor FromGray(int gray) static XColor FromGray(double gray) [Visual Basic] Shared Function FromGray(gray As Integer) As XColor Shared Function FromGray(gray As Double) As XColor
static XColor FromGray(int gray) static XColor FromGray(double gray)
Shared Function FromGray(gray As Integer) As XColor Shared Function FromGray(gray As Double) As XColor
Create an XColor from a grayscale value ranging between zero and 255.
The value represents the amount of black ink so zero indicates white and 255 indicates black.
None.