ColorPaletteHelper.CreateGrayscale

ColorPaletteHelper.CreateGrayscale method

Gets the grayscale palette of specified bit count. Allowed bit values are 1, 2, 4, 8.

public static IColorPalette CreateGrayscale(int bits)
ParameterTypeDescription
bitsInt32The bit count.

Return Value

Grayscale palette.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionbits

See Also