| C1.Win.C1DX.4 Assembly > C1.Util.DX.WIC Namespace > Bitmap Class > Lock Method : Lock(BitmapLockFlags) Method |
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 flags As BitmapLockFlags _ ) As BitmapLock
public BitmapLock Lock( BitmapLockFlags flags )
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.