| C1.UWP.DX Assembly > C1.Util.DX.WIC Namespace > Bitmap Class > Lock Method : Lock(RectL,BitmapLockFlags) Method |
The rectangle to be accessed.
The access mode you wish to obtain for the lock. This is a bitwise combination of BitmapLockFlags for read, write, or read and write access.
| Value | Meaning |
|---|---|
|
The read access lock. |
|
|
The write access lock. |
?
Provides access to a rectangular area of the bitmap.
'Declaration Public Overloads Function Lock( _ ByVal rcLockRef As RectL, _ ByVal flags As BitmapLockFlags _ ) As BitmapLock
public BitmapLock Lock( RectL rcLockRef, BitmapLockFlags flags )
The rectangle to be accessed.
The access mode you wish to obtain for the lock. This is a bitwise combination of BitmapLockFlags for read, write, or read and write access.
| Value | Meaning |
|---|---|
|
The read access lock. |
|
|
The write access lock. |
?
A reference that receives the locked memory location.
Locks are exclusive for writing but can be shared for reading. You cannot call CopyPixels while the Bitmap is locked for writing. Doing so will return an error, since locks are exclusive.