C# 클래스 SimplePaletteQuantizer.Extensions.Extend

The utility extender class.
파일 보기 프로젝트 열기: RHY3756547/FreeSO

공개 메소드들

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