TextureProfile.ConvertTexture Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Performs conversion of the texture content to the correct format.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public void ConvertTexture(
	ContentProcessorContext context, 
	TextureContent content, 
	TextureProcessorOutputFormat format, 
	bool isSpriteFont
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

context
Type: Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext
The processor context.
content
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent
The content to be compressed.
format
Type: Microsoft.Xna.Framework.Content.Pipeline.Processors.TextureProcessorOutputFormat
The user requested format for compression.
isSpriteFont
Type: System.Boolean
If the texture has represents a sprite font, i.e. is greyscale and has sharp black/white contrast.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop