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)
Parameter | Type | Description |
---|---|---|
bits | Int32 | The bit count. |
Return Value
Grayscale palette.
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | bits |
See Also
- interface IColorPalette
- class ColorPaletteHelper
- namespace Aspose.Imaging
- assembly Aspose.Imaging