Share via


TextureLoader.FilterTexture Method ()

Filters mipmap levels of a texture.

Overload List

public static void FilterTexture(BaseTexture, int, Filter);
public static void FilterTexture(BaseTexture, out PaletteEntry, int, Filter);

Remarks

A filter is recursively applied to each texture level to generate the next texture level.

Writing to a surface that is not on the "zero" level of the texture does not cause the dirty rectangle to be updated. If FilterTexture is called and the surface is not already dirty (which is unlikely under normal usage scenarios), the application must explicitly call Texture.AddDirtyRectangle on the texture.

Textures created in the default pool (Pool.Default) cannot be used with FilterTexture (unless created with Usage.Dynamic), because a lock operation on the object is necessary. Note that locks are prohibited on textures in the default pool (unless they are dynamic).

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

InvalidDataException

The data is invalid.