PreprocessingFilter.Scale
Scale(float)
Rescale image - 放大或缩小图像分辨率。 InterpolationFilterType = Lanczos8
public static PreprocessingFilter Scale(float ratio)
范围 | 类型 | 描述 |
---|---|---|
ratio | Single | 比例因子。建议从 0.1 到 1 收缩。从 1 到 10 放大。 |
返回值
比例过滤器对象。
也可以看看
Scale(float, InterpolationFilterType)
Rescale image - 放大或缩小图像分辨率。
public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)
范围 | 类型 | 描述 |
---|---|---|
ratio | Single | 比例因子。建议从 0.1 到 1 收缩。从 1 到 10 放大。 |
type | InterpolationFilterType | InterpolationFilterType |
返回值
比例过滤器对象。