[]
Provides access to a rectangular area of the bitmap.
public BitmapLock Lock(BitmapLockFlags flags)
Type | Name | Description | ||||||
---|---|---|---|---|---|---|---|---|
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.
? |
Type | Description |
---|---|
BitmapLock | 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.
Provides access to a rectangular area of the bitmap.
public BitmapLock Lock(RectL rcLockRef, BitmapLockFlags flags)
Type | Name | Description | ||||||
---|---|---|---|---|---|---|---|---|
RectL | rcLockRef | The rectangle to be accessed. |
||||||
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.
? |
Type | Description |
---|---|
BitmapLock | 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.
HRESULT IWICBitmap::Lock([In] const void* prcLock,[In] WICBitmapLockFlags flags,[Out] IWICBitmapLock** ppILock)
public BitmapLock Lock(IntPtr rcLockRef, BitmapLockFlags flags)
Type | Name | Description |
---|---|---|
IntPtr | rcLockRef | |
BitmapLockFlags | flags |
Type | Description |
---|---|
BitmapLock |