C# 클래스 SimplePaletteQuantizer.Quantizers.MedianCut.MedianCutCube

파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 메소드들

메소드 설명
IsColorIn ( Color color ) : System.Boolean

Determines whether the color is in the space of this cube.

MedianCutCube ( ICollection colors ) : System

Initializes a new instance of the MedianCutCube class.

SetPaletteIndex ( Int32 newPaletteIndex ) : void

Assigns a palette index to this cube, to be later found by a GetPaletteIndex method.

SplitAtMedian ( Byte componentIndex, MedianCutCube &firstMedianCutCube, MedianCutCube &secondMedianCutCube ) : void

Splits this cube's color list at median index, and returns two newly created cubes.

비공개 메소드들

메소드 설명
Shrink ( ) : void

Shrinks this cube to the least dimensions that covers all the colors in the RGB space.

메소드 상세

IsColorIn() 공개 메소드

Determines whether the color is in the space of this cube.
public IsColorIn ( Color color ) : System.Boolean
color Color The color to be checked, if it's contained in this cube.
리턴 System.Boolean

MedianCutCube() 공개 메소드

Initializes a new instance of the MedianCutCube class.
public MedianCutCube ( ICollection colors ) : System
colors ICollection The colors.
리턴 System

SetPaletteIndex() 공개 메소드

Assigns a palette index to this cube, to be later found by a GetPaletteIndex method.
public SetPaletteIndex ( Int32 newPaletteIndex ) : void
newPaletteIndex System.Int32 The palette index to be assigned to this cube.
리턴 void

SplitAtMedian() 공개 메소드

Splits this cube's color list at median index, and returns two newly created cubes.
public SplitAtMedian ( Byte componentIndex, MedianCutCube &firstMedianCutCube, MedianCutCube &secondMedianCutCube ) : void
componentIndex Byte Index of the component (red = 0, green = 1, blue = 2).
firstMedianCutCube MedianCutCube The first created cube.
secondMedianCutCube MedianCutCube The second created cube.
리턴 void