FreeImage.NET Class Library Reference
PaletteCreateGrayscalePalette Method (Color, Boolean) |
Creates a linear palette with the specified Color.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public void CreateGrayscalePalette( Color color, bool inverse )
Parameters
- color
- Type: System.DrawingColor
The Color used to create the palette. - inverse
- Type: SystemBoolean
true to create an inverse palette.
Remarks
A linear grayscale palette contains all shades of colors from
black to white. This method creates a similar palette with the white
color being replaced by the specified color.
See Also