D2D1_BITMAPSOURCE_INTERPOLATION_MODE enumeration (d2d1effects.h)

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_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_NEAREST_NEIGHBOR
Value: 0
Samples the nearest single point and uses that. Doesn't generate a mipmap.
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_LINEAR
Value: 1
Uses a four point sample and linear interpolation. Doesn't generate a mipmap.
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_CUBIC
Value: 2
Uses a 16 sample cubic kernel for interpolation. Doesn't generate a mipmap.
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_FANT
Value: 6
Uses the WIC fant interpolation, the same as the IWICBitmapScaler interface. Doesn't generate a mipmap.
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_MIPMAP_LINEAR
Value: 7
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.
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects.h