Scale
Contents
[
Hide
]Scale(float)
Rescale image - Upscale or downscale image resolution. InterpolationFilterType = Lanczos8
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
- namespace Aspose.OCR.Models.PreprocessingFilters
- assembly Aspose.OCR
Scale(float, InterpolationFilterType)
Rescale image - Upscale or downscale image resolution.
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 |
Return Value
ScaleFilter object.
See Also
- enum InterpolationFilterType
- class PreprocessingFilter
- namespace Aspose.OCR.Models.PreprocessingFilters
- assembly Aspose.OCR