SpriteTextureProcessor.Process Method
Note
This method is available only when developing for Windows.
Processes a texture for use as 2D sprites or user interface components.
Syntax
'Declaration
Public Overrides Function Process ( _
input As TextureContent, _
context As ContentProcessorContext _
) As TextureContent
public override TextureContent Process (
TextureContent input,
ContentProcessorContext context
)
public:
TextureContent Process(
TextureContent input,
ContentProcessorContext context
) override
Parameters
- input
Type: TextureContent
The input texture content. - context
Type: ContentProcessorContext
Context for the specified processor.
Return Value
Type: TextureContent
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).
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
SpriteTextureProcessor Class
SpriteTextureProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace
Platforms
Windows 7, Windows Vista, Windows XP