BitmapData.Stride Property


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

Namespace:   System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)

public int Stride { get; set; }

Property Value

Type: System.Int32

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.

.NET Framework
Available since 1.1
Return to top