Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    DataRectangle Struct

    Namespace: Stride.Graphics
    Assembly: Stride.dll

    Provides a pointer to 2D data.

    public struct DataRectangle
    Name Description
    Constructors
    DataRectangle(IntPtr, Int32)

    Initializes a new instance of the DataRectangle class.

    Fields
    DataPointer

    Gets or sets a pointer to the data.

    Pitch

    Gets or sets the number of bytes per row.

    | Improve this Doc View Source

    Constructors


    DataRectangle(IntPtr, Int32)

    Initializes a new instance of the DataRectangle class.

    public DataRectangle(IntPtr dataPointer, int pitch)
    Parameters
    Type Name Description
    System.IntPtr dataPointer

    The pointer to the data.

    System.Int32 pitch

    The stride.

    | Improve this Doc View Source

    Fields


    DataPointer

    Gets or sets a pointer to the data.

    public IntPtr DataPointer
    Field Value
    Type Description
    System.IntPtr

    The stream.


    Pitch

    Gets or sets the number of bytes per row.

    public int Pitch
    Field Value
    Type Description
    System.Int32

    The row pitch in bytes.


    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    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