Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

FilterOptions Enumeration

Bb196884.note(en-US,XNAGameStudio.30).gifNote
This enumeration is available only when developing for Windows.
Defines modes describing how to filter an image or mipmap when it is minified or magnified to fit a set of vertices.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

[FlagsAttribute]
public enum FilterOptions
 Member nameDescription
BoxEach pixel is computed by averaging a 2×2(×2) 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.
DitherResulting image must be dithered using a 4×4 ordered dither algorithm. This happens when converting from one format to another.
DitherDiffusionDo diffuse dithering on the image when changing from one format to another.
LinearBilinear interpolation filtering is used as a texture magnification or minification filter. A weighted average of a 2×2 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.
MirrorSame as specifying the MirrorU, MirrorV, and MirrorW flags. This flag is always used internally for this function.
MirrorUPixels off the edge of the texture on the u-axis should be mirrored, not wrapped.
MirrorVPixels off the edge of the texture on the v-axis should be mirrored, not wrapped.
MirrorWPixels off the edge of the texture on the w-axis should be mirrored, not wrapped.
NoneMipmapping disabled. The rasterizer uses the magnification filter instead.
PointEach destination pixel is computed by sampling the nearest pixel from the source image.
SrgbSame as specifying SrgbIn | SrgbOut.
SrgbInInput data is in sRGB (gamma 2.2) color space.
SrgbOutOutput data is in sRGB (gamma 2.2) color space.
TriangleEach pixel in the source image contributes equally to the destination image. This is the slowest of the filters.
Each valid filter must contain exactly one of the following flags: None, Point, Linear, Triangle, 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, MirrorV, MirrorW, Mirror, or Dither.
Windows XP SP2, Windows Vista
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.