Freigeben über


Filter Enumeration

Defines texture filtering modes for a texture stage.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Enumeration Filter
'Usage
Dim instance As Filter
public enum Filter
public enum class Filter
public enum Filter
public enum Filter

Members

  Member name Description
Supported by the .NET Compact Framework Box Each pixel is computed by averaging a 2x2(x2) box of pixels from the source image. This filter works only when the dimensions of the destination are half those of the source, as is the case with mipmaps. 
Supported by the .NET Compact Framework Linear Bilinear interpolation filtering is used as a texture magnification or minification filter. A weighted average of a 2x2 area of texels surrounding the desired pixel is used. The texture filter to use between mipmap levels is trilinear mipmap interpolation. The rasterizer interpolates pixel color in a linear manner, using the texels of the two nearest textures. 
Supported by the .NET Compact Framework Mirror Same as specifying the MirrorU and MirrorV flags. This flag is always used internally for this function. 
Supported by the .NET Compact Framework MirrorU Pixels off the edge of the texture on the u-axis should be mirrored, not wrapped. 
Supported by the .NET Compact Framework MirrorV Pixels off the edge of the texture on the v-axis should be mirrored, not wrapped. 
Supported by the .NET Compact Framework None Mipmapping disabled. The rasterizer uses the magnification filter instead. 
Supported by the .NET Compact Framework Point Each destination pixel is computed by sampling the nearest pixel from the source image. 

Remarks

Each valid filter must contain exactly one of the following flags: None, Point, Linear, or Box. In addition, the bitwise OR operator can be used to specify zero or more of the following optional flags with a valid filter: MirrorU or MirrorV, or Mirror.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Mobile Direct3D Programming