VolumeLoader.FromStream Method ()
Creates a volume from a file in memory.
Overload List
Remarks
This method supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. It handles conversion to and from compressed texture formats.
Writing to a non-level-zero surface of the volume texture does not cause the dirty rectangle to be updated. If FromFile is called and the texture is not already dirty (which is unlikely under normal usage scenarios), the application must explicitly call VolumeTexture.AddDirtyBox on the volume texture.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.
The data is invalid.
See Also