C# Класс ImageProcessor.Imaging.Quantizers.WuQuantizer.PaletteLookup

Stores the indexed color palette of an image for fast access. Adapted from
Показать файл Открыть проект Примеры использования класса

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