缩放
Scale(float)
重新缩放图像——放大或缩小图像分辨率。InterpolationFilterType = Lanczos8
public static PreprocessingFilter Scale(float ratio)
| Parameter | Type | 描述 |
|---|---|---|
| 比例 | 单精度 | 缩放因子。建议在 0.1 到 1 之间用于缩小。1 到 10 之间用于放大。 |
返回值
ScaleFilter 对象。
另请参见
- class PreprocessingFilter
- namespace Aspose.OCR.Models.PreprocessingFilters
- assembly Aspose.OCR
Scale(float, InterpolationFilterType)
重新缩放图像——放大或缩小图像分辨率。
public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)
| Parameter | Type | 描述 |
|---|---|---|
| 比例 | 单精度 | 缩放因子。建议在 0.1 到 1 之间用于缩小。1 到 10 之间用于放大。 |
| type | InterpolationFilterType | InterpolationFilterType |
返回值
ScaleFilter 对象。
另请参见
- enum InterpolationFilterType
- class PreprocessingFilter
- namespace Aspose.OCR.Models.PreprocessingFilters
- assembly Aspose.OCR