Class TextureProcessor
- 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.
public virtual Color ColorKeyColor { get; set; }
Property Value
ColorKeyEnabled
Gets or sets the color key flag.
public virtual bool ColorKeyEnabled { get; set; }
Property Value
GenerateMipmaps
Gets or sets the generate mipmaps flag.
public virtual bool GenerateMipmaps { get; set; }
Property Value
MakeSquare
Gets or sets the make square flag.
public virtual bool MakeSquare { get; set; }
Property Value
PremultiplyAlpha
Gets or sets the premultiply alpha flag.
public virtual bool PremultiplyAlpha { get; set; }
Property Value
ResizeToPowerOfTwo
Gets or sets the resize to power of two flag.
public virtual bool ResizeToPowerOfTwo { get; set; }
Property Value
TextureFormat
Gets or sets the texture processor for the output format.
public virtual TextureProcessorOutputFormat TextureFormat { get; set; }
Property Value
Methods
Process(TextureContent, ContentProcessorContext)
Processes the specified input data and returns the result.
public override TextureContent Process(TextureContent input, ContentProcessorContext context)
Parameters
input
TextureContentExisting content object being processed.
context
ContentProcessorContextContains any required custom process parameters.
Returns
- TextureContent
A typed object representing the processed input.