Bitmap.LockPixels Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Locks the bitmap's native pixel buffer for direct access.
public IntPtr LockPixels();
member this.LockPixels : unit -> nativeint
Returns
nativeint
A pointer to the first byte of the pixel buffer.
Exceptions
The native bitmap is invalid.
The native operation failed.
Remarks
Call UnlockPixels() when access is complete. See the Android NDK Bitmap documentation.