## Clone(Rectangle, PixelFormat) {#clone}

Crée une copie de la section de ceBitmap Défini parRectangle structure et avec un spécifiéPixelFormat énumération.

```csharp
public Bitmap Clone(Rectangle rect, PixelFormat format)
```

| Paramètre | Taper | La description |
| --- | --- | --- |
| rect | Rectangle | Définit la partie de ceBitmap à copier. Les coordonnées sont relatives à ceBitmap. |
| format | PixelFormat | Spécifie lePixelFormat énumération pour la destination Bitmap. |

### Return_Value

Le nouveauBitmap que cette méthode crée.

### Voir également

* struct [Rectangle](../../rectangle)
* enum [PixelFormat](../../../system.drawing.imaging/pixelformat)
* class [Bitmap](../../bitmap)
* espace de noms [System.Drawing](../../bitmap)
* Assemblée [Aspose.Drawing](../../../)

---

## Clone(RectangleF, PixelFormat) {#clone_1}

Crée une copie de la section de ceBitmap défini avec un spécifiéPixelFormat énumération.

```csharp
public Bitmap Clone(RectangleF rect, PixelFormat format)
```

| Paramètre | Taper | La description |
| --- | --- | --- |
| rect | RectangleF | Définit la partie de ceBitmap copier. |
| format | PixelFormat | Spécifie lePixelFormat énumération pour la destinationBitmap. |

### Return_Value

LaBitmap que cette méthode crée.

### Exceptions

| exception | condition |
| --- | --- |
| OutOfMemoryException | *rect* est en dehors des limites du bitmap source. |
| ArgumentException | La hauteur ou la largeur de*rect* est 0. |

### Voir également

* struct [RectangleF](../../rectanglef)
* enum [PixelFormat](../../../system.drawing.imaging/pixelformat)
* class [Bitmap](../../bitmap)
* espace de noms [System.Drawing](../../bitmap)
* Assemblée [Aspose.Drawing](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
