## Scale(float) {#scale}

Rescale image - 放大或缩小图像分辨率。 InterpolationFilterType = Lanczos8

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| ratio | Single | 比例因子。建议从 0.1 到 1 收缩。从 1 到 10 放大。 |

### 返回值

比例过滤器对象。

### 也可以看看

* class [PreprocessingFilter](../)
* 命名空间 [Aspose.OCR.Models.PreprocessingFilters](../../preprocessingfilter/)
* 部件 [Aspose.OCR](../../../)

---

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

Rescale image - 放大或缩小图像分辨率。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| ratio | Single | 比例因子。建议从 0.1 到 1 收缩。从 1 到 10 放大。 |
| type | InterpolationFilterType | [`InterpolationFilterType`](../../../aspose.ocr.filters/interpolationfiltertype/) |

### 返回值

比例过滤器对象。

### 也可以看看

* enum [InterpolationFilterType](../../../aspose.ocr.filters/interpolationfiltertype/)
* class [PreprocessingFilter](../)
* 命名空间 [Aspose.OCR.Models.PreprocessingFilters](../../preprocessingfilter/)
* 部件 [Aspose.OCR](../../../)


