Create an XColor from a grayscale value.
[C#] static XColor FromGray(int gray) static XColor FromGray(double gray)
static XColor FromGray(int gray) static XColor FromGray(double gray)
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.