## GetFittingRectangle(Rectangle, int, int) {#getfittingrectangle}

Ruft ein Rechteck ab, das zum aktuellen Bild passt.

```csharp
public static Rectangle GetFittingRectangle(Rectangle rectangle, int width, int height)
```

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| rectangle | Rectangle | Das Rechteck, für das ein passendes Rechteck erhalten werden soll. |
| width | Int32 | Die Objektbreite. |
| height | Int32 | Die Objekthöhe. |

### Rückgabewert

Das passende Rechteck oder Ausnahme, wenn kein passendes Rechteck gefunden werden kann.

### Siehe auch

* struct [Rectangle](../../rectangle)
* class [Image](../../image)
* namensraum [Aspose.Imaging](../../image)
* Montage [Aspose.Imaging](../../../)

---

## GetFittingRectangle(Rectangle, int[], int, int) {#getfittingrectangle_1}

Ruft ein Rechteck ab, das zum aktuellen Bild passt.

```csharp
public static Rectangle GetFittingRectangle(Rectangle rectangle, int[] pixels, int width, 
    int height)
```

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| rectangle | Rectangle | Das Rechteck, für das ein passendes Rechteck erhalten werden soll. |
| pixels | Int32[] | Die 32-Bit-ARGB-Pixel. |
| width | Int32 | Die Objektbreite. |
| height | Int32 | Die Objekthöhe. |

### Rückgabewert

Das passende Rechteck oder Ausnahme, wenn kein passendes Rechteck gefunden werden kann.

### Siehe auch

* struct [Rectangle](../../rectangle)
* class [Image](../../image)
* namensraum [Aspose.Imaging](../../image)
* Montage [Aspose.Imaging](../../../)

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