<PackageReference Include="System.Drawing.Common" Version="8.0.2" />

BitmapData

public sealed class BitmapData
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 int Height { get; set; }

Gets or sets the pixel height of the Bitmap object. Also sometimes referred to as the number of scan lines.

public PixelFormat PixelFormat { get; set; }

Gets or sets the format of the pixel information in the Bitmap object that returned this BitmapData object.

public int Reserved { get; set; }

Reserved. Do not use.

public IntPtr 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.

public int Stride { get; set; }

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

public int 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.

public BitmapData()

Initializes a new instance of the BitmapData class.