Scaling Mode Enum
Specifies which algorithm is used to scale bitmap images.
public enum class BitmapScalingMode
public enum BitmapScalingMode
type BitmapScalingMode =
Public Enum BitmapScalingMode
Use very high quality Fant bitmap scaling, which is slower than all other bitmap scaling modes, but produces higher quality output.
Use linear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output.
Use nearest-neighbor bitmap scaling, which provides performance benefits over LowQuality mode when the software rasterizer is used. This mode is often used to magnify a bitmap.
Use the default bitmap scaling mode, which is Linear.
The following example shows how to use the RenderOptions.SetBitmapScalingMode method to set the bitmap scale mode to
LowQuality for an image object:
// Set the bitmap scaling mode for the image to render faster. RenderOptions.SetBitmapScalingMode(MyImage, BitmapScalingMode.LowQuality);
' Set the bitmap scaling mode for the image to render faster. RenderOptions.SetBitmapScalingMode(MyImage, BitmapScalingMode.LowQuality)
When animating the scale of any bitmap, the default high-quality image resampling algorithm can sometimes consume sufficient system resources to cause frame rate degradation. This frame rate degradation can cause animations to skip frames or stutter. By setting the RenderOptions.BitmapScalingMode property to
LowQuality, you can create a smoother animation when scaling a bitmap.