共用方式為


Texture3D.FromFile Method

Creates a volume texture resource from a file.

Overload List

Name Description
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.

Remarks

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

See Also

Reference

Texture3D Class
Texture3D Members
Microsoft.Xna.Framework.Graphics Namespace