Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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_NEIGHBORValue: 0 Samples the nearest single point and uses that. Doesn't generate a mipmap.  | 
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_LINEARValue: 1 Uses a four point sample and linear interpolation. Doesn't generate a mipmap.  | 
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_CUBICValue: 2 Uses a 16 sample cubic kernel for interpolation. Doesn't generate a mipmap.  | 
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_FANTValue: 6 Uses the WIC fant interpolation, the same as the IWICBitmapScaler interface. Doesn't generate a mipmap.  | 
D2D1_BITMAPSOURCE_INTERPOLATION_MODE_MIPMAP_LINEARValue: 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_DWORDValue: 0xffffffff  | 
Requirements
| Requirement | Value | 
|---|---|
| Header | d2d1effects.h |