SpriteTextureProcessor.Process Method
Processes a texture for use as 2D sprites or user interface components.
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 input texture content. - context
Context for the specified processor.
Return Value
The converted texture content.
Remarks
Process converts textures to 32 bit color format, and performs color keying, replacing magenta pixels (red=255, green=0, blue=255, alpha=255) with transparent black (rgb=0, alpha=0).
See Also
Reference
SpriteTextureProcessor Class
SpriteTextureProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace
Platforms
Windows XP SP2, Windows Vista