Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    PixelBufferArray Class

    Namespace: Stride.Graphics
    Assembly: Stride.dll

    Used by Image to provide a selector to a PixelBuffer.

    System.Object → PixelBufferArray
    Derived from PixelBufferArray:

    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.

    | Improve this Doc View Source

    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.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation