언어

Bitmap.LockPixels Method

Definition

Locks the bitmap's native pixel buffer for direct access.

public IntPtr LockPixels();
member this.LockPixels : unit -> nativeint

Returns

IntPtr

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.

Applies to