inline void SetGray(UByte g);
SetGray assigns the current color's red, green, and blue to the passed grayscale value. After calling this method, each of the RGB components contains the same grayscale value, ranging from 0 to 255. The current color's alpha channel is not changed.
Parameters |
Description |
UByte g |
A value, ranging from 0 to 255, that is set to each of the RGB components. |