Table of Contents

Class TextureProcessor

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly
MonoGame.Framework.Content.Pipeline.dll

Class to provide methods and properties for processing textures.

[ContentProcessor(DisplayName = "Texture - MonoGame")]
public class TextureProcessor : ContentProcessor<TextureContent, TextureContent>, IContentProcessor
Inheritance
TextureProcessor
Implements
Inherited Members

Constructors

TextureProcessor()

Creates a new instance of the TextureProcessor class.

public TextureProcessor()

Properties

ColorKeyColor

Gets or sets the color key color. Typically used to make the background color of a texture transparent.

public virtual Color ColorKeyColor { get; set; }

Property Value

Color

ColorKeyEnabled

Gets or sets the color key flag. Must be set to true to use the color key.

public virtual bool ColorKeyEnabled { get; set; }

Property Value

bool

GenerateMipmaps

Gets or sets the generate mipmaps flag.

public virtual bool GenerateMipmaps { get; set; }

Property Value

bool

MakeSquare

Gets or sets the make square flag.

public virtual bool MakeSquare { get; set; }

Property Value

bool

PremultiplyAlpha

Gets or sets the premultiply alpha flag.

public virtual bool PremultiplyAlpha { get; set; }

Property Value

bool

ResizeToPowerOfTwo

Gets or sets the resize to power of two flag.

public virtual bool ResizeToPowerOfTwo { get; set; }

Property Value

bool

TextureFormat

Gets or sets the texture processor for the output format.

public virtual TextureProcessorOutputFormat TextureFormat { get; set; }

Property Value

TextureProcessorOutputFormat

Methods

Process(TextureContent, ContentProcessorContext)

Processes the specified input data and returns the result.

public override TextureContent Process(TextureContent input, ContentProcessorContext context)

Parameters

input TextureContent

Existing content object being processed.

context ContentProcessorContext

Contains any required custom process parameters.

Returns

TextureContent

A typed object representing the processed input.