## 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](../../aspose.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](../../aspose.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](../../aspose.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](../../aspose.drawing.imaging/bitmapdata/stride/) { get; set; } | Gets or sets the stride width (also called scan width) of the Bitmap object. |
| [Width](../../aspose.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 [Aspose.Drawing.Imaging](../../aspose.drawing.imaging/)
* assembly [Aspose.Drawing.Common](../../)


