C# Class SimplePaletteQuantizer.ColorCaches.Octree.OctreeCacheNode

ファイルを表示 Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
AddColor ( Color color, Int32 paletteIndex, Int32 level ) : void

Adds the color.

GetPaletteIndex ( Color color, Int32 level ) : Color>.Dictionary

Gets the index of the palette.

OctreeCacheNode ( ) : System

Initializes a new instance of the OctreeCacheNode class.

Private Methods

Method Description
GetColorIndexAtLevel ( Color color, Int32 level ) : Int32

Method Details

AddColor() public method

Adds the color.
public AddColor ( Color color, Int32 paletteIndex, Int32 level ) : void
color Color The color.
paletteIndex System.Int32 Index of the palette.
level System.Int32 The level.
return void

GetPaletteIndex() public method

Gets the index of the palette.
public GetPaletteIndex ( Color color, Int32 level ) : Color>.Dictionary
color Color
level System.Int32
return Color>.Dictionary

OctreeCacheNode() public method

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