C# 클래스 ImageProcessor.Imaging.Quantizers.WuQuantizer.PaletteLookup

Stores the indexed color palette of an image for fast access. Adapted from
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BuildLookup void
ComputeBitMask byte
GetMask int
HighestSetBitIndex byte

공개 메소드들

메소드 설명
GetPaletteIndex ( ImageProcessor.Imaging.Colors.Color32 pixel ) : byte

Gets palette index for the given pixel.

PaletteLookup ( ImageProcessor.Imaging.Colors.Color32 palette ) : System

Initializes a new instance of the PaletteLookup class.

비공개 메소드들

메소드 설명
BuildLookup ( ImageProcessor.Imaging.Colors.Color32 palette ) : void

The build lookup.

ComputeBitMask ( byte max, int bits ) : byte

Computes the bit mask.

GetMask ( ImageProcessor.Imaging.Colors.Color32 palette ) : int

Gets the mask value from the palette.

HighestSetBitIndex ( byte value ) : byte

Gets the highest set bit index.

메소드 상세

GetPaletteIndex() 공개 메소드

Gets palette index for the given pixel.
public GetPaletteIndex ( ImageProcessor.Imaging.Colors.Color32 pixel ) : byte
pixel ImageProcessor.Imaging.Colors.Color32 /// The pixel to return the index for. ///
리턴 byte

PaletteLookup() 공개 메소드

Initializes a new instance of the PaletteLookup class.
public PaletteLookup ( ImageProcessor.Imaging.Colors.Color32 palette ) : System
palette ImageProcessor.Imaging.Colors.Color32 /// The palette. ///
리턴 System