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.