D2D1_BITMAPSOURCE_INTERPOLATION_MODE enumeration

The interpolation mode used to scale the image in the Bitmap source effect. If the mode disables the mipmap, then BitmapSouce will cache the image at the resolution determined by the Scale and EnableDPICorrection properties.

Syntax


typedef enum D2D1_BITMAPSOURCE_INTERPOLATION_MODE { 
  D2D1_BITMAPSOURCE_INTERPOLATION_MODE_NEAREST_NEIGHBOR  = 0,
  D2D1_BITMAPSOURCE_INTERPOLATION_MODE_LINEAR            = 1,
  D2D1_BITMAPSOURCE_INTERPOLATION_MODE_CUBIC             = 2,
  D2D1_BITMAPSOURCE_INTERPOLATION_MODE_FANT              = 6,
  D2D1_BITMAPSOURCE_INTERPOLATION_MODE_MIPMAP_LINEAR     = 7
} D2D1_BITMAPSOURCE_INTERPOLATION_MODE;

Constants

D2D1_BITMAPSOURCE_INTERPOLATION_MODE_NEAREST_NEIGHBOR

Samples the nearest single point and uses that. Doesn't generate a mipmap.

D2D1_BITMAPSOURCE_INTERPOLATION_MODE_LINEAR

Uses a four point sample and linear interpolation. Doesn't generate a mipmap.

D2D1_BITMAPSOURCE_INTERPOLATION_MODE_CUBIC

Uses a 16 sample cubic kernel for interpolation. Doesn't generate a mipmap.

D2D1_BITMAPSOURCE_INTERPOLATION_MODE_FANT

Uses the WIC fant interpolation, the same as the IWICBitmapScaler interface. Doesn't generate a mipmap.

D2D1_BITMAPSOURCE_INTERPOLATION_MODE_MIPMAP_LINEAR

Generates mipmap chain in system memory using bilinear interpolation. For each mipmap the effect scales to the nearest multiple of 0.5 using bilinear interpolation and then scales the remaining amount using linear interpolation.

Requirements

Header

D2d1effects.h

 

 

Show: