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

Obtiene el rectángulo que se ajusta a la imagen actual.

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

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| rectangle | Rectangle | El rectángulo para obtener el rectángulo adecuado. |
| width | Int32 | El ancho del objeto. |
| height | Int32 | La altura del objeto. |

### Valor_devuelto

El rectángulo de ajuste o excepción si no se encuentra ningún rectángulo de ajuste.

### Ver también

* struct [Rectangle](../../rectangle)
* class [Image](../../image)
* espacio de nombres [Aspose.Imaging](../../image)
* asamblea [Aspose.Imaging](../../../)

---

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

Obtiene el rectángulo que se ajusta a la imagen actual.

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

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| rectangle | Rectangle | El rectángulo para obtener el rectángulo adecuado. |
| pixels | Int32[] | Los píxeles ARGB de 32 bits. |
| width | Int32 | El ancho del objeto. |
| height | Int32 | La altura del objeto. |

### Valor_devuelto

El rectángulo de ajuste o excepción si no se encuentra ningún rectángulo de ajuste.

### Ver también

* struct [Rectangle](../../rectangle)
* class [Image](../../image)
* espacio de nombres [Aspose.Imaging](../../image)
* asamblea [Aspose.Imaging](../../../)

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