ModelTextureProcessor.Process Method
Processes a texture.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
public virtual TextureContent Process (
TextureContent input,
ContentProcessorContext context
)
Parameters
- input
The texture content to process. - context
Context for the specified processor.
Return Value
The processed texture content.
Remarks
Process performs color keying, replacing magenta pixels (red=255, green=0, blue=255, alpha=255) with transparent black (rgb=0, alpha=0), generates mipmaps if they are not already present, and compresses the texture into either Dxt1 or Dxt5 format, depending on whether it contains any fractional alpha values.
See Also
Reference
ModelTextureProcessor Class
ModelTextureProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace
Platforms
Windows XP SP2, Windows Vista