C# 클래스 Warcraft.Core.Quantization.PaletteQuantizer

Summary description for PaletteQuantizer.
상속: Quantizer
파일 보기 프로젝트 열기: Nihlus/libwarcraft 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_colors System.Drawing.Color[]

공개 메소드들

메소드 설명
PaletteQuantizer ( ArrayList palette ) : System.Collections

Construct the palette quantizer

Palette quantization only requires a single quantization step

보호된 메소드들

메소드 설명
GetPalette ( System.Drawing.Imaging.ColorPalette palette ) : System.Drawing.Imaging.ColorPalette

Retrieve the palette for the quantized image

QuantizePixel ( Color32 pixel ) : byte

Override this to process the pixel in the second pass of the algorithm

메소드 상세

GetPalette() 보호된 메소드

Retrieve the palette for the quantized image
protected GetPalette ( System.Drawing.Imaging.ColorPalette palette ) : System.Drawing.Imaging.ColorPalette
palette System.Drawing.Imaging.ColorPalette Any old palette, this is overrwritten
리턴 System.Drawing.Imaging.ColorPalette

PaletteQuantizer() 공개 메소드

Construct the palette quantizer
Palette quantization only requires a single quantization step
public PaletteQuantizer ( ArrayList palette ) : System.Collections
palette System.Collections.ArrayList The color palette to quantize to
리턴 System.Collections

QuantizePixel() 보호된 메소드

Override this to process the pixel in the second pass of the algorithm
protected QuantizePixel ( Color32 pixel ) : byte
pixel Color32 The pixel to quantize
리턴 byte

프로퍼티 상세

_colors 보호되어 있는 프로퍼티

List of all colors in the palette
protected Color[],System.Drawing _colors
리턴 System.Drawing.Color[]