## Bitmap::Clone() method


创建当前对象的副本。

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


### ReturnValue

当前对象的副本。

## 另见

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


创建一个 [Bitmap](../) 对象，表示当前对象所表示的位图图像的某个区域的副本。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | 矩形 | 指定要复制的区域的矩形 |
| format | Imaging::PixelFormat | 新 [Bitmap](../) 的像素格式 |

### ReturnValue

已创建的 [Bitmap](../) 对象

## 另见

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


创建一个 [Bitmap](../) 对象，表示当前对象所表示的位图图像的某个区域的副本。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | RectangleF | 指定要复制的区域的矩形 |
| format | Imaging::PixelFormat | 新 [Bitmap](../) 的像素格式 |

### ReturnValue

已创建的 [Bitmap](../) 对象

## 另见

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