Represents the scaling mode when an image needs to be resized.
KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0
Public Enumeration ScalingMode
public enum class ScalingMode
Represents an automatically selected scaling mode based on source/target sizes providing the best quality.
In practice, the MitchellNetravali scaling mode is selected if either the width or height is enlarged,
and the Bicubic scaling mode, if there is shrinking in both dimensions.
If source and target sizes are the same, then NoScaling is selected.
Represents no scaling. When source and target sizes are different, then clipping might occur.
Represents the nearest neighbor scaling mode, which always selects the closest pixel when scaling.
Apart from NoScaling this is the fastest scaling mode but provides the poorest quality.
Represents box scaling mode. When downscaling, the pixels will average.
When upscaling, the result is identical to NearestNeighbor.
Represents a 2-dimensional linear interpolation scaling mode. It is among the faster scaling techniques but
it provides an acceptable quality only if the difference between the source and target size does not exceed 25%.
Represents the bicubic interpolation. It both preserves sharpness and reduces artifacts quite well.
This is the default scaling mode when downscaling images.
Represents the resampling algorithm suggested by Kornél Lánczos using a kernel radius of 2 pixels.
It both preserves sharpness and reduces artifacts quite well. When downscaling, acts also as a low-pass filter.
The result is usually similar to the bicubic filter.
Represents the resampling algorithm suggested by Kornél Lánczos using a kernel radius of 3 pixels.
It is among the slower filters and it tends to increase the sharpness of the original image.
Represents the spline cubic interpolation. It provides smooth results but it tends to overly blur the details.
Represents the Catmull-Rom cubic interpolation. Similarly to the bicubic interpolation
it preserves sharpness quite well without producing strong artifacts.
Represents the Mitchell-Netravali cubic interpolation. Usually it produces very good results.
This is the default scaling mode when upscaling images.
Represents the Robidoux cubic interpolation. It produces a very similar result to the Mitchell-Netravali interpolation.