Create an XColor from a grayscale value.
[C#] static XColor FromGray(int gray) [Visual Basic] Shared Function FromGray(gray As Integer) As XColor
static XColor FromGray(int gray)
Shared Function FromGray(gray As Integer) 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.
Submit feedback about this site to: