C# 클래스 Axiom.Media.PixelBox

A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory. In case of a rectangle, depth must be 1. Pixels are stored as a succession of "depth" slices, each containing "height" rows of "width" pixels.
상속: BasicBox
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
data System.IntPtr
format PixelFormat
offset int
rowPitch int
slicePitch int

공개 메소드들

메소드 설명
Compressed ( PixelFormat format ) : bool

I don't know how to figure this out. For now, just deal with the DXT* formats

GetSubVolume ( BasicBox def ) : PixelBox

Return a subvolume of this PixelBox.

This function does not copy any data, it just returns a PixelBox object with a data pointer pointing somewhere inside the data of object. Throws an Exception if def is not fully contained.

PixelBox ( ) : System

Parameter constructor for setting the members manually

PixelBox ( BasicBox extents, PixelFormat format ) : System
PixelBox ( int width, int height, int depth, PixelFormat format ) : System
PixelBox ( int width, int height, int depth, PixelFormat format, IntPtr data ) : System

Constructor providing width, height and depth. This constructor assumes the pixel data is laid out consecutively in memory. (this means row after row, slice after slice, with no space in between)

SetConsecutive ( ) : void

Set the rowPitch and slicePitch so that the buffer is laid out consecutive in memory.

비공개 메소드들

메소드 설명
PixelBox ( BasicBox extents, PixelFormat format, IntPtr data ) : System

Constructor providing extents in the form of a Box object. This constructor assumes the pixel data is laid out consecutively in memory. (this means row after row, slice after slice, with no space in between)

메소드 상세

Compressed() 공개 정적인 메소드

I don't know how to figure this out. For now, just deal with the DXT* formats
public static Compressed ( PixelFormat format ) : bool
format PixelFormat
리턴 bool

GetSubVolume() 공개 메소드

Return a subvolume of this PixelBox.
This function does not copy any data, it just returns a PixelBox object with a data pointer pointing somewhere inside the data of object. Throws an Exception if def is not fully contained.
public GetSubVolume ( BasicBox def ) : PixelBox
def BasicBox Defines the bounds of the subregion to return
리턴 PixelBox

PixelBox() 공개 메소드

Parameter constructor for setting the members manually
public PixelBox ( ) : System
리턴 System

PixelBox() 공개 메소드

public PixelBox ( BasicBox extents, PixelFormat format ) : System
extents BasicBox
format PixelFormat
리턴 System

PixelBox() 공개 메소드

public PixelBox ( int width, int height, int depth, PixelFormat format ) : System
width int
height int
depth int
format PixelFormat
리턴 System

PixelBox() 공개 메소드

Constructor providing width, height and depth. This constructor assumes the pixel data is laid out consecutively in memory. (this means row after row, slice after slice, with no space in between)
public PixelBox ( int width, int height, int depth, PixelFormat format, IntPtr data ) : System
width int Width of the region
height int Height of the region
depth int Depth of the region
format PixelFormat Format of this buffer
data System.IntPtr Pointer to the actual data
리턴 System

SetConsecutive() 공개 메소드

Set the rowPitch and slicePitch so that the buffer is laid out consecutive in memory.
public SetConsecutive ( ) : void
리턴 void

프로퍼티 상세

data 보호되어 있는 프로퍼티

The data pointer. We do not own this.
protected IntPtr,System data
리턴 System.IntPtr

format 보호되어 있는 프로퍼티

The pixel format
protected PixelFormat format
리턴 PixelFormat

offset 보호되어 있는 프로퍼티

A byte offset into the data
protected int offset
리턴 int

rowPitch 보호되어 있는 프로퍼티

Number of elements between the leftmost pixel of one row and the left pixel of the next. This value must always be equal to getWidth() (consecutive) for compressed formats.
protected int rowPitch
리턴 int

slicePitch 보호되어 있는 프로퍼티

Number of elements between the top left pixel of one (depth) slice and the top left pixel of the next. This can be a negative value. Must be a multiple of rowPitch. This value must always be equal to getWidth()*getHeight() (consecutive) for compressed formats.
protected int slicePitch
리턴 int