BitmapPalette Constructor (IList<Color>^)

 

Initializes a new instance of the BitmapPalette class with the specified colors.

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

public:
BitmapPalette(
	IList<Color>^ colors
)

Parameters

colors
Type: System.Collections.Generic::IList<Color>^

The colors to add to the custom palette.

Exception Condition
ArgumentNullException

The colors parameter is null.

InvalidOperationException

The colors parameter is less than 1 or greater than 256.

The following example demonstrates how to define a custom BitmapPalette and apply it to a new BitmapSource.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: