C# Class CrossStitchCreator.SimpleColourMap

A simple colourmap that implements RGB444
Inheritance: IColourMap
ファイルを表示 Open project: adrianj/CrossStitchCreator Class Usage Examples

Public Methods

Method Description
ClearFrequencies ( ) : void
Clone ( ) : IColourMap
GetLeastCommonColour ( bool matchWhenChecked ) : Color

Finds the least common colour. If parameter matchWhenChecked is true, then the search will ignore ColourInfos that are checked (typically to indicate that this colour is not to be removed).

GetLeastCommonColourInfo ( bool matchWhenChecked ) : IColourInfo
GetNearestColour ( Color colourToMatch ) : Color
GetPalette ( ) : List
RemoveColour ( Color c ) : void
SimpleColourMap ( ) : System
SimpleColourMap ( bool createEmpty ) : System
ToArray ( ) : IColourInfo[]
ToList ( ) : List

Private Methods

Method Description
getMaxDiff ( Color c1, Color c2 ) : byte

Method Details

ClearFrequencies() public method

public ClearFrequencies ( ) : void
return void

Clone() public method

public Clone ( ) : IColourMap
return IColourMap

GetLeastCommonColour() public method

Finds the least common colour. If parameter matchWhenChecked is true, then the search will ignore ColourInfos that are checked (typically to indicate that this colour is not to be removed).
public GetLeastCommonColour ( bool matchWhenChecked ) : Color
matchWhenChecked bool
return Color

GetLeastCommonColourInfo() public method

public GetLeastCommonColourInfo ( bool matchWhenChecked ) : IColourInfo
matchWhenChecked bool
return IColourInfo

GetNearestColour() public method

public GetNearestColour ( Color colourToMatch ) : Color
colourToMatch Color
return Color

GetPalette() public method

public GetPalette ( ) : List
return List

RemoveColour() public method

public RemoveColour ( Color c ) : void
c Color
return void

SimpleColourMap() public method

public SimpleColourMap ( ) : System
return System

SimpleColourMap() public method

public SimpleColourMap ( bool createEmpty ) : System
createEmpty bool
return System

ToArray() public method

public ToArray ( ) : IColourInfo[]
return IColourInfo[]

ToList() public method

public ToList ( ) : List
return List