InterpolationMode enumeration

Applies to: desktop apps only

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  {
  InterpolationModeInvalid               = QualityModeInvalid,
  InterpolationModeDefault               = QualityModeDefault,
  InterpolationModeLowQuality            = QualityModeLow,
  InterpolationModeHighQuality           = QualityModeHigh,
  InterpolationModeBilinear              = QualityModeHigh + 1,
  InterpolationModeBicubic               = QualityModeHigh + 2,
  InterpolationModeNearestNeighbor       = QualityModeHigh + 3,
  InterpolationModeHighQualityBilinear   = QualityModeHigh + 4,
  InterpolationModeHighQualityBicubic    = QualityModeHigh + 5 
} InterpolationMode;

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

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

See also

Graphics::GetInterpolationMode
Graphics::SetInterpolationMode

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show: