BitmapData.Scan0 Property

 

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.

Namespace:   System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)

member Scan0 : nativeint with get, set

Property Value

Type: System.IntPtr

The address of the first pixel data in the bitmap.

The following code example demonstrates how to use the PixelFormat, Height, Width, and Scan0 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.

System_CAPS_noteNote

The following example code was created for use with an image with the Format24bppRgb format.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: