## Scale(float) {#scale}

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

```csharp
public static PreprocessingFilter Scale(float ratio)
```

| Parameter | Type | Description |
| --- | --- | --- |
| ratio | Single | The scaling factor. Recommended from 0.1 to 1 to shrink. From 1 to 10 to enlarge. |

### Return Value

ScaleFilter object.

### See Also

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

---

## Scale(float, InterpolationFilterType) {#scale_1}

Rescale image - Upscale or downscale image resolution.

```csharp
public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)
```

| Parameter | Type | Description |
| --- | --- | --- |
| ratio | Single | The scaling factor. Recommended from 0.1 to 1 to shrink. From 1 to 10 to enlarge. |
| type | InterpolationFilterType | [`InterpolationFilterType`](../../../aspose.ocr.filters/interpolationfiltertype) |

### Return Value

ScaleFilter object.

### See Also

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

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