C# Class ImageProcessor.Imaging.Quantizers.OctreeQuantizer.Octree

Class which does the actual quantization
Afficher le fichier Open project: JimBobSquarePants/ImageProcessor

Private Properties

Свойство Type Description
Reduce void

Méthodes publiques

Méthode Description
AddColor ( ImageProcessor.Imaging.Colors.Color32 pixel ) : void

Add a given color value to the Octree

GetPaletteIndex ( ImageProcessor.Imaging.Colors.Color32 pixel ) : int

Get the palette index for the passed color

Octree ( int maxColorBits ) : System

Initializes a new instance of the Octree class.

Palletize ( int colorCount ) : ArrayList

Convert the nodes in the Octree to a palette with a maximum of colorCount colors

Méthodes protégées

Méthode Description
TrackPrevious ( OctreeNode node ) : void

Keep track of the previous node that was quantized

Private Methods

Méthode Description
Reduce ( ) : void

Reduce the depth of the tree

Method Details

AddColor() public méthode

Add a given color value to the Octree
public AddColor ( ImageProcessor.Imaging.Colors.Color32 pixel ) : void
pixel ImageProcessor.Imaging.Colors.Color32 /// The containing color information to add. ///
Résultat void

GetPaletteIndex() public méthode

Get the palette index for the passed color
public GetPaletteIndex ( ImageProcessor.Imaging.Colors.Color32 pixel ) : int
pixel ImageProcessor.Imaging.Colors.Color32 /// The containing the pixel data. ///
Résultat int

Octree() public méthode

Initializes a new instance of the Octree class.
public Octree ( int maxColorBits ) : System
maxColorBits int /// The maximum number of significant bits in the image ///
Résultat System

Palletize() public méthode

Convert the nodes in the Octree to a palette with a maximum of colorCount colors
public Palletize ( int colorCount ) : ArrayList
colorCount int /// The maximum number of colors ///
Résultat System.Collections.ArrayList

TrackPrevious() protected méthode

Keep track of the previous node that was quantized
protected TrackPrevious ( OctreeNode node ) : void
node OctreeNode /// The node last quantized ///
Résultat void