SoftwareBitmap.LockBuffer(BitmapBufferAccessMode) 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.
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
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.