InterpolationMode enumeration (gdiplusenums.h)

The InterpolationMode enumeration specifies the algorithm that is used when images are scaled or rotated. This enumeration is used by the Graphics::GetInterpolationMode and Graphics::SetInterpolationMode methods of the Graphics class.

Syntax

typedef enum InterpolationMode {
  InterpolationModeInvalid,
  InterpolationModeDefault,
  InterpolationModeLowQuality,
  InterpolationModeHighQuality,
  InterpolationModeBilinear,
  InterpolationModeBicubic,
  InterpolationModeNearestNeighbor,
  InterpolationModeHighQualityBilinear,
  InterpolationModeHighQualityBicubic
} ;

Constants

 
InterpolationModeInvalid
Used internally
InterpolationModeDefault
Specifies the default interpolation mode.
InterpolationModeLowQuality
Specifies a low-quality mode.
InterpolationModeHighQuality
Specifies a high-quality mode.
InterpolationModeBilinear
Specifies bilinear interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 50 percent of its original size.
InterpolationModeBicubic
Specifies bicubic interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 25 percent of its original size.
InterpolationModeNearestNeighbor
Specifies nearest-neighbor interpolation.
InterpolationModeHighQualityBilinear
Specifies high-quality, bilinear interpolation. Prefiltering is performed to ensure high-quality shrinking.
InterpolationModeHighQualityBicubic
Specifies high-quality, bicubic interpolation. Prefiltering is performed to ensure high-quality shrinking. This mode produces the highest quality transformed images.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdiplusenums.h (include Gdiplus.h)

See also

Graphics::GetInterpolationMode

Graphics::SetInterpolationMode