## Resize(int, int, InterpolationFilterType) {#resize_1}

Rescale image - Upscale or downscale image resolution.

```csharp
public static PreprocessingFilter Resize(int width, int height, InterpolationFilterType type)
```

| Parameter | Type | Description |
| --- | --- | --- |
| width | Int32 | The new width of the image. |
| height | Int32 | The new height of the image. |
| type | InterpolationFilterType | [`InterpolationFilterType`](../../../aspose.ocr.filters/interpolationfiltertype) |

### Return Value

ResizeFilter object.

### See Also

* enum [InterpolationFilterType](../../../aspose.ocr.filters/interpolationfiltertype)
* class [PreprocessingFilter](../../preprocessingfilter)
* namespace [Aspose.OCR.Models.PreprocessingFilters](../../preprocessingfilter)
* assembly [Aspose.OCR](../../../)

---

## Resize(int, int) {#resize}

Rescale image - Upscale or downscale image resolution. InterpolationFilterType = Lanczos8

```csharp
public static PreprocessingFilter Resize(int width, int height)
```

| Parameter | Type | Description |
| --- | --- | --- |
| width | Int32 | The new width of the image. |
| height | Int32 | The new height of the image. |

### Return Value

ResizeFilter object.

### See Also

* class [PreprocessingFilter](../../preprocessingfilter)
* namespace [Aspose.OCR.Models.PreprocessingFilters](../../preprocessingfilter)
* assembly [Aspose.OCR](../../../)

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