Creates a color map (the array ColorMap) for recoloring.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static ColorMap[] CreateColorMap(
	params Color[] colors
)

Parameters

colors
Type: array< System.Drawing..::.Color >[]()[]
Given colors to be recolors.

Return Value

The array of ColorMap

Remarks

Method creates from the array of colors colors a color remap array (ColorMap). Parameters colors must contain always the old color and then the new one, to which the old one should be changed, i.e. parameters with the even index (0, 2, ...) contain old colors and odd index contain new colors.

Exceptions

ExceptionCondition
System..::.ArgumentNullException colors is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also