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.
Assembly: System.Drawing (in System.Drawing.dll)
The following code example demonstrates how to use the PixelFormat, Height, Width, and properties; the LockBits and UnlockBits methods; and the ImageLockMode enumeration. This example is designed to be used with Windows Forms. To run this example, paste it into a form and handle the form's Paint event by calling the LockUnlockBitsExample method, passing e as PaintEventArgs.
The following example code was created for use with an image with the Format24bppRgb format.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.