C# 클래스 Axiom.Media.PixelUtil

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
GetBitDepths ( PixelFormat format ) : int[]
GetBitMasks ( PixelFormat format ) : uint[]
GetComponentType ( PixelFormat format ) : PixelComponentType
GetFormatForBitDepths ( PixelFormat format, ushort integerBits, ushort floatBits ) : PixelFormat
GetFormatFromName ( string name ) : PixelFormat
GetFormatFromName ( string name, bool accessibleOnly ) : PixelFormat
GetFormatFromName ( string name, bool accessibleOnly, bool caseSensitive ) : PixelFormat

Gets the format from given name.

GetFormatName ( PixelFormat format ) : string
GetMemorySize ( int width, int height, int depth, PixelFormat format ) : int

Returns the size in memory of a region with the given extents and pixel format with consecutive memory layout.

In case that the format is non-compressed, this simply returns width * height * depth * PixelConverter.GetNumElemBytes(format). In the compressed case, this does serious magic.

GetNumElemBits ( PixelFormat format ) : int

Returns the size in bits of an element of the given pixel format.

GetNumElemBytes ( PixelFormat format ) : int

Returns the size in bytes of an element of the given pixel format.

HasAlpha ( PixelFormat format ) : bool
IsAccessible ( PixelFormat format ) : bool
IsCompressed ( PixelFormat format ) : bool
IsFloatingPoint ( PixelFormat format ) : bool
IsLuminance ( PixelFormat format ) : bool
IsNativeEndian ( PixelFormat format ) : bool

메소드 상세

GetBitDepths() 공개 정적인 메소드

public static GetBitDepths ( PixelFormat format ) : int[]
format PixelFormat
리턴 int[]

GetBitMasks() 공개 정적인 메소드

public static GetBitMasks ( PixelFormat format ) : uint[]
format PixelFormat
리턴 uint[]

GetComponentType() 공개 정적인 메소드

public static GetComponentType ( PixelFormat format ) : PixelComponentType
format PixelFormat
리턴 PixelComponentType

GetFormatForBitDepths() 공개 정적인 메소드

public static GetFormatForBitDepths ( PixelFormat format, ushort integerBits, ushort floatBits ) : PixelFormat
format PixelFormat
integerBits ushort
floatBits ushort
리턴 PixelFormat

GetFormatFromName() 공개 정적인 메소드

public static GetFormatFromName ( string name ) : PixelFormat
name string
리턴 PixelFormat

GetFormatFromName() 공개 정적인 메소드

public static GetFormatFromName ( string name, bool accessibleOnly ) : PixelFormat
name string
accessibleOnly bool
리턴 PixelFormat

GetFormatFromName() 공개 정적인 메소드

Gets the format from given name.
public static GetFormatFromName ( string name, bool accessibleOnly, bool caseSensitive ) : PixelFormat
name string The string of format name
accessibleOnly bool If true, non-accessible format will treat as invalid format, otherwise, all supported formats are valid.
caseSensitive bool Should be set true if string match should use case sensitivity.
리턴 PixelFormat

GetFormatName() 공개 정적인 메소드

public static GetFormatName ( PixelFormat format ) : string
format PixelFormat
리턴 string

GetMemorySize() 공개 정적인 메소드

Returns the size in memory of a region with the given extents and pixel format with consecutive memory layout.
In case that the format is non-compressed, this simply returns width * height * depth * PixelConverter.GetNumElemBytes(format). In the compressed case, this does serious magic.
public static GetMemorySize ( int width, int height, int depth, PixelFormat format ) : int
width int Width of the area
height int Height of the area
depth int Depth of the area
format PixelFormat Format of the area
리턴 int

GetNumElemBits() 공개 정적인 메소드

Returns the size in bits of an element of the given pixel format.
public static GetNumElemBits ( PixelFormat format ) : int
format PixelFormat Pixel format to test.
리턴 int

GetNumElemBytes() 공개 정적인 메소드

Returns the size in bytes of an element of the given pixel format.
public static GetNumElemBytes ( PixelFormat format ) : int
format PixelFormat Pixel format to test.
리턴 int

HasAlpha() 공개 정적인 메소드

public static HasAlpha ( PixelFormat format ) : bool
format PixelFormat
리턴 bool

IsAccessible() 공개 정적인 메소드

public static IsAccessible ( PixelFormat format ) : bool
format PixelFormat
리턴 bool

IsCompressed() 공개 정적인 메소드

public static IsCompressed ( PixelFormat format ) : bool
format PixelFormat
리턴 bool

IsFloatingPoint() 공개 정적인 메소드

public static IsFloatingPoint ( PixelFormat format ) : bool
format PixelFormat
리턴 bool

IsLuminance() 공개 정적인 메소드

public static IsLuminance ( PixelFormat format ) : bool
format PixelFormat
리턴 bool

IsNativeEndian() 공개 정적인 메소드

public static IsNativeEndian ( PixelFormat format ) : bool
format PixelFormat
리턴 bool