Bitmap.LockBits
Bitmap.LockBits method
Locks a Bitmap into system memory.
public BitmapData LockBits(RectangleF rect, ImageLockMode flags, PixelFormat format)
| Parameter | Type | Description |
|---|---|---|
| rect | RectangleF | A Rectangle structure specifying the portion of the Bitmap to lock. |
| flags | ImageLockMode | An ImageLockMode enumeration specifying the access level (read/write) for the Bitmap. |
| format | PixelFormat | A PixelFormat enumeration specifying the data format of this Bitmap. |
Return Value
A BitmapData containing information about this lock operation.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | The PixelFormat is not a specific bits-per-pixel value.-or-The incorrect PixelFormat is passed in for a bitmap. |
| Exception | The operation failed. |
See Also
- class BitmapData
- struct RectangleF
- enum ImageLockMode
- enum PixelFormat
- class Bitmap
- namespace Aspose.Page.Drawing
- assembly Aspose.Page