Table of Contents

Class TextureImporter

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

Provides methods for reading texture files for use in the Content Pipeline.

[ContentImporter(new string[] { ".bmp", ".cut", ".dds", ".g3", ".hdr", ".gif", ".ico", ".iff", ".jbg", ".jbig", ".jng", ".jpg", ".jpeg", ".jpe", ".jif", ".jfif", ".jfi", ".jp2", ".j2k", ".jpf", ".jpx", ".jpm", ".mj2", ".jxr", ".hdp", ".wdp", ".koa", ".gg", ".pcd", ".mng", ".pcx", ".pbm", ".pgm", ".ppm", ".pnm", ".pfm", ".png", ".pict", ".pct", ".pic", ".psd", ".3fr", ".ari", ".arw", ".bay", ".crw", ".cr2", ".cap", ".dcs", ".dcr", ".dng", ".drf", ".eip", ".erf", ".fff", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos", ".mrw", ".nef", ".nrw", ".obm", ".orf", ".pef", ".ptx", ".pxn", ".r3d", ".raf", ".raw", ".rwl", ".rw2", ".rwz", ".sr2", ".srf", ".srw", ".x3f", ".ras", ".sun", ".sgi", ".rgba", ".bw", ".int", ".inta", ".tga", ".tiff", ".tif", ".wbmp", ".webp", ".xbm", ".xpm" }, DisplayName = "Texture Importer - MonoGame", DefaultProcessor = "TextureProcessor")]
public class TextureImporter : ContentImporter<TextureContent>, IContentImporter
Inheritance
TextureImporter
Implements
Inherited Members

Constructors

TextureImporter()

Initializes a new instance of TextureImporter.

public TextureImporter()

Methods

Import(string, ContentImporterContext)

Called by the XNA Framework when importing a texture file to be used as a game asset. This is the method called by the XNA Framework when an asset is to be imported into an object that can be recognized by the Content Pipeline.

public override TextureContent Import(string filename, ContentImporterContext context)

Parameters

filename string

Name of a game asset file.

context ContentImporterContext

Contains information for importing a game asset, such as a logger interface.

Returns

TextureContent

Resulting game asset.