## 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.

```csharp
public sealed class BitmapData
```

## Constructors

| Name | Description |
| --- | --- |
| [BitmapData](bitmapdata/)() | The default constructor. |

## Properties

| Name | Description |
| --- | --- |
| [Height](../../system.drawing.imaging/bitmapdata/height/) { get; set; } | Gets or sets the pixel height of the Bitmap object. Also sometimes referred to as the number of scan lines. |
| [PixelFormat](../../system.drawing.imaging/bitmapdata/pixelformat/) { get; set; } | Gets or sets the format of the pixel information in the Bitmap object that returned this BitmapData object. |
| [Scan0](../../system.drawing.imaging/bitmapdata/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](../../system.drawing.imaging/bitmapdata/stride/) { get; set; } | Gets or sets the stride width (also called scan width) of the Bitmap object. |
| [Width](../../system.drawing.imaging/bitmapdata/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

* namespace [System.Drawing.Imaging](../../system.drawing.imaging/)
* assembly [Aspose.Drawing](../../)


