C# 클래스 SEToolbox.ImageLibrary.PaletteQuantizer

Summary description for PaletteQuantizer.
상속: Quantizer
파일 보기 프로젝트 열기: midspace/SEToolbox

공개 메소드들

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