Creates a linear palette with the specified Color.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public void CreateGrayscalePalette(
	Color color,
	bool inverse
)
Visual Basic (Declaration)
Public Sub CreateGrayscalePalette ( _
	color As Color, _
	inverse As Boolean _
)
Visual C++
public:
void CreateGrayscalePalette(
	Color color, 
	bool inverse
)

Parameters

color
Type: System.Drawing..::.Color
The Color used to create the palette.
inverse
Type: System..::.Boolean
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.

Version Information

FreeImage.NET

Supported in: 3.12.0, 3.13.0, 3.13.1

See Also