ImageScalingMode Enum

Definition

The scaling mode to use for WinForms/Win32 images

public enum class ImageScalingMode
public enum class ImageScalingMode
enum ImageScalingMode
public enum ImageScalingMode
type ImageScalingMode = 
Public Enum ImageScalingMode
Inheritance
ImageScalingMode

Fields

Bicubic 4

Smooth results, without distorsions, but fuzzy (uses GDI+ InterpolationMode.Bicubic)

Bilinear 3

Smooth results, without distorsions, but fuzzy (uses GDI+ InterpolationMode.Bilinear)

BorderOnly 1

Keep the actual image unscaled, add a border around the image

Default 0

Let the shell pick what looks best depending on the current DPI zoom factor

HighQualityBicubic 6

Smooth results, without distorsions, but fuzzy (uses GDI+ InterpolationMode.HighQualityBicubic)

HighQualityBilinear 5

Smooth results, without distorsions, but fuzzy (uses GDI+ InterpolationMode.HighQualityBilinear)

MixedNearestNeighborHighQualityBicubic 7

Sharper results than Bicubic for large zoom levels, without distorsions, but fuzzy (2 steps-scaling, uses NearestNeighbor up to the closest multiple of 100%, then GDI+ InterpolationMode.HighQualityBicubic from there)

NearestNeighbor 2

Sharp results, but pixelated, and possibly distorted unless multiple of 100% scaling

Remarks

DEV NOTE: The image scaling modes available here for WinForms and WPF match the similar scaling modes for Win32 from vscommon\vsuilib\VsUIDpiHelper.h If changes are made to algorithms in this managed DpiHelper class, matching changes will have to be made to the native class, too.

Applies to