C# Class SimplePaletteQuantizer.ColorCaches.EuclideanDistance.EuclideanDistanceColorCache

Inheritance: BaseColorCache
显示文件 Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
EuclideanDistanceColorCache ( ) : System

Initializes a new instance of the EuclideanDistanceColorCache class.

EuclideanDistanceColorCache ( ColorModel colorModel ) : System

Initializes a new instance of the EuclideanDistanceColorCache class.

Protected Methods

Method Description
OnCachePalette ( IList palette ) : void

See BaseColorCache.OnCachePalette for more details.

OnGetColorPaletteIndex ( Color color, Int32 &paletteIndex ) : void

See BaseColorCache.OnGetColorPaletteIndex for more details.

Method Details

EuclideanDistanceColorCache() public method

Initializes a new instance of the EuclideanDistanceColorCache class.
public EuclideanDistanceColorCache ( ) : System
return System

EuclideanDistanceColorCache() public method

Initializes a new instance of the EuclideanDistanceColorCache class.
public EuclideanDistanceColorCache ( ColorModel colorModel ) : System
colorModel ColorModel The color model.
return System

OnCachePalette() protected method

See BaseColorCache.OnCachePalette for more details.
protected OnCachePalette ( IList palette ) : void
palette IList
return void

OnGetColorPaletteIndex() protected method

See BaseColorCache.OnGetColorPaletteIndex for more details.
protected OnGetColorPaletteIndex ( Color color, Int32 &paletteIndex ) : void
color Color
paletteIndex System.Int32
return void