Scale

Scale(float)

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

public static PreprocessingFilter Scale(float ratio)
ParameterTypeDescription
ratioSingleThe scaling factor. Recommended from 0.1 to 1 to shrink. From 1 to 10 to enlarge.

Return Value

ScaleFilter object.

See Also


Scale(float, InterpolationFilterType)

Rescale image - Upscale or downscale image resolution.

public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)
ParameterTypeDescription
ratioSingleThe scaling factor. Recommended from 0.1 to 1 to shrink. From 1 to 10 to enlarge.
typeInterpolationFilterTypeInterpolationFilterType

Return Value

ScaleFilter object.

See Also