Udostępnij za pośrednictwem


SoftwareBitmap.LockBuffer(BitmapBufferAccessMode) Method

Definition

Gets a BitmapBuffer object that allows you to operate directly on the software bitmap's pixel data.

public:
 virtual BitmapBuffer ^ LockBuffer(BitmapBufferAccessMode mode) = LockBuffer;
BitmapBuffer LockBuffer(BitmapBufferAccessMode const& mode);
public BitmapBuffer LockBuffer(BitmapBufferAccessMode mode);
function lockBuffer(mode)
Public Function LockBuffer (mode As BitmapBufferAccessMode) As BitmapBuffer

Parameters

mode
BitmapBufferAccessMode

A value indicating the access mode of the returned buffer.

Returns

The buffer containing pixel data.

Remarks

Because the returned BitmapBuffer represents an exclusive lock on the associated bitmap, apps should not keep the reference to it indefinitely.

Applies to