Allocation.Stride Property

Definition

Gets the stride of the Allocation.

public virtual long Stride { [Android.Runtime.Register("getStride", "()J", "GetGetStrideHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getStride", "()J", "GetGetStrideHandler", ApiSince=24)>]
member this.Stride : int64

Property Value

the stride. For 1D Allocation, the stride will be the number of bytes of this Allocation. For 2D and 3D Allocations, the stride will be the stride in X dimension measuring in bytes.

Attributes

Remarks

Gets the stride of the Allocation. For a 2D or 3D Allocation, the raw data maybe padded so that each row of the Allocation has certain alignment. The size of each row including such padding is called stride.

Java documentation for android.renderscript.Allocation.getStride().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to