PixelBufferArray Class
Namespace: Stride.GraphicsAssembly: Stride.dll
Used by Image to provide a selector to a PixelBuffer.
public sealed class PixelBufferArray
Name | Description | |
---|---|---|
Properties | ||
Count | Gets the total number of pixel buffers. |
|
Item[Int32] | Gets the pixel buffer. |
|
Item[Int32, Int32] | Gets the pixel buffer for the specified array/z slice and mipmap level. |
|
Item[Int32, Int32, Int32] | Gets the pixel buffer for the specified array/z slice and mipmap level. |
Properties
Count
Gets the total number of pixel buffers.
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The total number of pixel buffers. |
Item[Int32]
Gets the pixel buffer.
public PixelBuffer this[int bufferIndex] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bufferIndex |
Property Value
Type | Description |
---|---|
PixelBuffer | A PixelBuffer. |
Item[Int32, Int32]
Gets the pixel buffer for the specified array/z slice and mipmap level.
public PixelBuffer this[int arrayOrDepthSlice, int mipIndex] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | arrayOrDepthSlice | For 3D image, the parameter is the Z slice, otherwise it is an index into the texture array. |
System.Int32 | mipIndex | The mip map slice index. |
Property Value
Type | Description |
---|---|
PixelBuffer | A PixelBuffer. |
Item[Int32, Int32, Int32]
Gets the pixel buffer for the specified array/z slice and mipmap level.
public PixelBuffer this[int arrayIndex, int zIndex, int mipIndex] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | arrayIndex | Index into the texture array. Must be set to 0 for 3D images. |
System.Int32 | zIndex | Z index for 3D image. Must be set to 0 for all 1D/2D images. |
System.Int32 | mipIndex | The mip map slice index. |
Property Value
Type | Description |
---|---|
PixelBuffer | A PixelBuffer. |