## Bitmap::Clone() method


Creates a copy of the current object.

```cpp
virtual SharedPtr<Image> System::Drawing::Bitmap::Clone() override
```


### ReturnValue

A copy of the current object.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Image](../../image/)
* Class [Bitmap](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## Bitmap::Clone(Rectangle, Imaging::PixelFormat) method


Creates a [Bitmap](../) object that represents a copy of a region of the bitmap image represented by the current object.

```cpp
SharedPtr<Bitmap> System::Drawing::Bitmap::Clone(Rectangle rect, Imaging::PixelFormat format)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | Rectangle | The rectangle that specifies the region to copy |
| format | Imaging::PixelFormat | The pixel format for the new [Bitmap](../) |

### ReturnValue

The created [Bitmap](../) object

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Bitmap](../)
* Class [Rectangle](../../rectangle/)
* Enum [PixelFormat](../../../system.drawing.imaging/pixelformat/)
* Class [Bitmap](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## Bitmap::Clone(RectangleF, Imaging::PixelFormat) method


Creates a [Bitmap](../) object that represents a copy of a region of the bitmap image represented by the current object.

```cpp
SharedPtr<Bitmap> System::Drawing::Bitmap::Clone(RectangleF rect, Imaging::PixelFormat format)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | RectangleF | The rectangle that specifies the region to copy |
| format | Imaging::PixelFormat | The pixel format for the new [Bitmap](../) |

### ReturnValue

The created [Bitmap](../) object

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Bitmap](../)
* Class [RectangleF](../../rectanglef/)
* Enum [PixelFormat](../../../system.drawing.imaging/pixelformat/)
* Class [Bitmap](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
