Texture.FromFile Method
Creates a texture resource from a file.
Overload List
Name | Description |
---|---|
Texture.FromFile (GraphicsDevice, Stream) | Creates a texture resource from a stream. |
Texture.FromFile (GraphicsDevice, Stream, Int32) | Creates a texture resource from a stream, specifying the number of bytes in the stream. |
Texture.FromFile (GraphicsDevice, Stream, Int32, TextureCreationParameters) | Loads a Texture from a file. |
Texture.FromFile (GraphicsDevice, Stream, TextureCreationParameters) | Loads a Texture from a file. |
Texture.FromFile (GraphicsDevice, String) | Creates a texture resource from a file. |
Texture.FromFile (GraphicsDevice, String, Int32, Int32, Int32) | Creates a texture resource from a file, specifying the width, height, and depth of the texture in pixels. |
Texture.FromFile (GraphicsDevice, String, TextureCreationParameters) | Creates a texture resource from a file, specifying the parameters to be used in creation of the texture. |
Remarks
The supported texture image file formats are described by the ImageFileFormat enumeration.
See Also
Reference
Texture Class
Texture Members
Microsoft.Xna.Framework.Graphics Namespace