Export (0) Print
Expand All

TextureCube.FromFile Method

Creates a cube texture resource from a file.

NameDescription
TextureCube.FromFile (GraphicsDevice, Stream)Creates a cube texture resource from a stream.
TextureCube.FromFile (GraphicsDevice, Stream, Int32)Creates a texture resource from a stream, specifying the number of bytes in the stream.
TextureCube.FromFile (GraphicsDevice, Stream, Int32, TextureCreationParameters)Creates a texture resource from a stream, specifying the number of bytes in the stream and the texture creation parameters to use.
TextureCube.FromFile (GraphicsDevice, Stream, TextureCreationParameters)Creates a texture resource from a stream, specifying the parameters to be used in creation of the texture.
TextureCube.FromFile (GraphicsDevice, String)Creates a cube texture resource from a file.
TextureCube.FromFile (GraphicsDevice, String, Int32)Creates a cube texture resource from a file, specifying the width and height of the texture in pixels.
TextureCube.FromFile (GraphicsDevice, String, TextureCreationParameters)Creates a texture resource from a file, specifying the parameters to be used in creation of the texture.
TextureCube.FromFile (GraphicsDevice, String, Int32, Int32, Int32) (Inherited from Texture.)

The supported texture image file formats are described by the ImageFileFormat enumeration.

Community Additions

ADD
Show:
© 2014 Microsoft