Compartilhar via


Filter Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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
type 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 Point Each destination pixel is computed by sampling the nearest pixel from the source image.
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 None Mipmapping disabled. The rasterizer uses the magnification filter instead.
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 Mirror Same as specifying the MirrorU and MirrorV flags. This flag is always used internally for this function.

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 Smartphone, Windows Mobile for Pocket PC

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

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Mobile Direct3D Programming in the .NET Compact Framework