Class BitmapData

BitmapData class

Specifies the attributes of a bitmap image. The BitmapData class is used by the LockBits and UnlockBits methods of the Bitmap class. Not inheritable.

public sealed class BitmapData

Constructors

NameDescription
BitmapData()The default constructor.

Properties

NameDescription
Height { get; set; }Gets or sets the pixel height of the Bitmap object. Also sometimes referred to as the number of scan lines.
PixelFormat { get; set; }Gets or sets the format of the pixel information in the Bitmap object that returned this BitmapData object.
Scan0 { get; set; }Gets or sets the address of the first pixel data in the bitmap. This can also be thought of as the first scan line in the bitmap.
Stride { get; set; }Gets or sets the stride width (also called scan width) of the Bitmap object.
Width { get; set; }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.

See Also