Set the color to a grayscale value.




void SetGray(int gray)
void SetGray(int gray, int alpha)
void SetGray(double gray)
void SetGray(double gray, double alpha)

[Visual Basic]
Sub SetGray(gray As Integer)
Sub SetGray(gray As Integer, alpha as Integer)
Sub SetGray(gray As Double)
Sub SetGray(gray As Double, alpha as Double)



Name Description
gray The amount of black (0 to 255).
alpha The level of opacity from transparent through to fully opaque (0 to 255).




Set the color to grayscale and provide a value for it.

Optionally set the alpha value to specify a transparency level. If this parameter is omitted the color is set to fully opaque - no transparency.