Texture3D.FromFile Method

Creates a volume texture resource from a file.

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

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

Community Additions

ADD
Show: