VolumeLoader.FromStream Method ()

Creates a volume from a file in memory.

Overload List

public static void FromStream(Volume, Box, Stream, Box, Filter, int);
public static void FromStream(Volume, Box, Stream, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, Box, Stream, int, Box, Filter, int);
public static void FromStream(Volume, Box, Stream, int, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, Box, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, int, Box, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, int, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, int, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Box, Stream, int, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Stream, Box, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Stream, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Stream, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Stream, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Stream, int, Box, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Stream, int, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, out PaletteEntry, Stream, int, Filter, int);
public static void FromStream(Volume, out PaletteEntry, Stream, int, Filter, int, ref ImageInformation);
public static void FromStream(Volume, Stream, Box, Filter, int);
public static void FromStream(Volume, Stream, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, Stream, Filter, int);
public static void FromStream(Volume, Stream, Filter, int, ref ImageInformation);
public static void FromStream(Volume, Stream, int, Box, Filter, int);
public static void FromStream(Volume, Stream, int, Box, Filter, int, ref ImageInformation);
public static void FromStream(Volume, Stream, int, Filter, int);
public static void FromStream(Volume, Stream, int, Filter, int, ref ImageInformation);

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

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

InvalidDataException

The data is invalid.

See Also