C# Класс SimplePaletteQuantizer.Extensions.Extend

The utility extender class.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetBitDepth ( this pixelFormat ) : Byte

Gets the bit count for a given pixel format.

GetColorCount ( this pixelFormat ) : UInt16

Gets the available color count for a given pixel format.

GetFormatByColorCount ( Int32 colorCount ) : PixelFormat

Gets the format by color count.

GetFriendlyName ( this pixelFormat ) : String

Gets the friendly name of the pixel format.

GetPalette ( this image ) : List

Gets the palette of an indexed image.

GetPaletteColorCount ( this image ) : Int32

Gets the palette color count.

HasAlpha ( this pixelFormat ) : System.Boolean

Determines whether the specified pixel format has an alpha channel.

IsDeepColor ( this pixelFormat ) : System.Boolean

Determines whether [is deep color] [the specified pixel format].

IsIndexed ( this pixelFormat ) : System.Boolean

Determines whether the specified pixel format is indexed.

IsSupported ( this pixelFormat ) : System.Boolean

Determines whether the specified pixel format is supported.

SetPalette ( this image, List palette ) : void

Sets the palette of an indexed image.

Описание методов

GetBitDepth() публичный статический Метод

Gets the bit count for a given pixel format.
public static GetBitDepth ( this pixelFormat ) : Byte
pixelFormat this The pixel format.
Результат Byte

GetColorCount() публичный статический Метод

Gets the available color count for a given pixel format.
public static GetColorCount ( this pixelFormat ) : UInt16
pixelFormat this The pixel format.
Результат System.UInt16

GetFormatByColorCount() публичный статический Метод

Gets the format by color count.
public static GetFormatByColorCount ( Int32 colorCount ) : PixelFormat
colorCount System.Int32
Результат PixelFormat

GetFriendlyName() публичный статический Метод

Gets the friendly name of the pixel format.
public static GetFriendlyName ( this pixelFormat ) : String
pixelFormat this The pixel format.
Результат String

GetPalette() публичный статический Метод

Gets the palette of an indexed image.
public static GetPalette ( this image ) : List
image this The source image.
Результат List

GetPaletteColorCount() публичный статический Метод

Gets the palette color count.
public static GetPaletteColorCount ( this image ) : Int32
image this The image.
Результат System.Int32

HasAlpha() публичный статический Метод

Determines whether the specified pixel format has an alpha channel.
public static HasAlpha ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Результат System.Boolean

IsDeepColor() публичный статический Метод

Determines whether [is deep color] [the specified pixel format].
public static IsDeepColor ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Результат System.Boolean

IsIndexed() публичный статический Метод

Determines whether the specified pixel format is indexed.
public static IsIndexed ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Результат System.Boolean

IsSupported() публичный статический Метод

Determines whether the specified pixel format is supported.
public static IsSupported ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Результат System.Boolean

SetPalette() публичный статический Метод

Sets the palette of an indexed image.
public static SetPalette ( this image, List palette ) : void
image this The target image.
palette List The palette.
Результат void