Platform SDK: DirectX

D3DX_FILTERTYPE

The D3DX_FILTERTYPE enumerated type defines the filtering types for the Direct3DX texturing functions.

typedef enum _D3DX_FILTERTYPE {
  D3DX_FT_POINT    = 0x01,
  D3DX_FT_LINEAR   = 0x02,
  D3DX_FT_DEFAULT  = D3DX_DEFAULT
} D3DX_FILTERTYPE;
D3DX_FT_POINT
Point sampling only. No filtering.
D3DX_FT_LINEAR
Bilinear filtering.
D3DX_FT_DEFAULT
The default filter type.

Remarks

The members of the D3DX_FILTERTYPE enumerated type are the various filter types for the generation of mipmaps.

Direct3DX supports two kinds of filtering: bilinear (D3DX_FT_LINEAR) and point-sampling (D3DX_FT_POINT). For higher quality resizing and mipmap generation, choose bilinear filtering. For faster operation, choose D3DX_FT_POINT.

Note  To avoid blurring in images that have text in them, point-sampling and disabling mipmapping may work better in some specific cases.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxcore.h.

See Also

D3DXLoadTextureFromMemory, D3DXLoadTextureFromSurface