Share via

BitmapData.Stride Property


Gets or sets the stride width (also called scan width) of the Bitmap object.

 property int Stride { int get(); void set(int value); };
public int Stride { get; set; }
member this.Stride : int with get, set
Public Property Stride As Integer

Property Value

The stride width, in bytes, of the Bitmap object.


The stride is the width of a single row of pixels (a scan line), rounded up to a four-byte boundary. If the stride is positive, the bitmap is top-down. If the stride is negative, the bitmap is bottom-up.

Applies to