BitmapData.Width Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the pixel width of the Bitmap object. This can also be thought of as the number of pixels in one scan line.

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

public int Width { get; set; }

Property Value

Type: System.Int32

The pixel width of the Bitmap object.

.NET Framework
Available since 1.1
Return to top
Show: