C# 클래스 ImageProcessor.Imaging.Quantizers.OctreeQuantizer.Octree

Class which does the actual quantization
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

Private Properties

프로퍼티 타입 설명
Reduce void

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
TrackPrevious ( OctreeNode node ) : void

Keep track of the previous node that was quantized

비공개 메소드들

메소드 설명
Reduce ( ) : void

Reduce the depth of the tree

메소드 상세

AddColor() 공개 메소드

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. ///
리턴 void

GetPaletteIndex() 공개 메소드

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. ///
리턴 int

Octree() 공개 메소드

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

Palletize() 공개 메소드

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 ///
리턴 System.Collections.ArrayList

TrackPrevious() 보호된 메소드

Keep track of the previous node that was quantized
protected TrackPrevious ( OctreeNode node ) : void
node OctreeNode /// The node last quantized ///
리턴 void