C# Class SimplePaletteQuantizer.Extensions.Extend

The utility extender class.
Afficher le fichier Open project: RHY3756547/FreeSO

Méthodes publiques

Méthode Description
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.

Method Details

GetBitDepth() public static méthode

Gets the bit count for a given pixel format.
public static GetBitDepth ( this pixelFormat ) : Byte
pixelFormat this The pixel format.
Résultat Byte

GetColorCount() public static méthode

Gets the available color count for a given pixel format.
public static GetColorCount ( this pixelFormat ) : UInt16
pixelFormat this The pixel format.
Résultat System.UInt16

GetFormatByColorCount() public static méthode

Gets the format by color count.
public static GetFormatByColorCount ( Int32 colorCount ) : PixelFormat
colorCount System.Int32
Résultat PixelFormat

GetFriendlyName() public static méthode

Gets the friendly name of the pixel format.
public static GetFriendlyName ( this pixelFormat ) : String
pixelFormat this The pixel format.
Résultat String

GetPalette() public static méthode

Gets the palette of an indexed image.
public static GetPalette ( this image ) : List
image this The source image.
Résultat List

GetPaletteColorCount() public static méthode

Gets the palette color count.
public static GetPaletteColorCount ( this image ) : Int32
image this The image.
Résultat System.Int32

HasAlpha() public static méthode

Determines whether the specified pixel format has an alpha channel.
public static HasAlpha ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Résultat System.Boolean

IsDeepColor() public static méthode

Determines whether [is deep color] [the specified pixel format].
public static IsDeepColor ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Résultat System.Boolean

IsIndexed() public static méthode

Determines whether the specified pixel format is indexed.
public static IsIndexed ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Résultat System.Boolean

IsSupported() public static méthode

Determines whether the specified pixel format is supported.
public static IsSupported ( this pixelFormat ) : System.Boolean
pixelFormat this The pixel format.
Résultat System.Boolean

SetPalette() public static méthode

Sets the palette of an indexed image.
public static SetPalette ( this image, List palette ) : void
image this The target image.
palette List The palette.
Résultat void