Bitmap.Clone
Contents
[
Hide
]Clone()
Creates an exact copy of this Image.
public object Clone()
Return Value
The Image this method creates, cast as an object.
See Also
- class Bitmap
- namespace Aspose.Page.Drawing
- assembly Aspose.Page
Clone(RectangleF, PixelFormat)
Creates a copy of the section of this Bitmap defined with a specified PixelFormat enumeration.
public Bitmap Clone(RectangleF rect, PixelFormat format)
| Parameter | Type | Description |
|---|---|---|
| rect | RectangleF | Defines the portion of this Bitmap to copy. |
| format | PixelFormat | Specifies the PixelFormat enumeration for the destination Bitmap. |
Return Value
The Bitmap that this method creates.
Exceptions
| exception | condition |
|---|---|
| OutOfMemoryException | rect is outside of the source bitmap bounds. |
| ArgumentException | The height or width of rect is 0. |
See Also
- struct RectangleF
- enum PixelFormat
- class Bitmap
- namespace Aspose.Page.Drawing
- assembly Aspose.Page