VolumeLoader.FromFile Method ()

Loads a volume from a file.

Overload List

public static void FromFile(Volume, Box, string, Box, Filter, int);
public static void FromFile(Volume, Box, string, Box, Filter, int, ref ImageInformation);
public static void FromFile(Volume, out PaletteEntry, Box, string, Box, Filter, int);
public static void FromFile(Volume, out PaletteEntry, Box, string, Box, Filter, int, ref ImageInformation);
public static void FromFile(Volume, out PaletteEntry, Box, string, Filter, int);
public static void FromFile(Volume, out PaletteEntry, Box, string, Filter, int, ref ImageInformation);
public static void FromFile(Volume, out PaletteEntry, string, Box, Filter, int);
public static void FromFile(Volume, out PaletteEntry, string, Box, Filter, int, ref ImageInformation);
public static void FromFile(Volume, out PaletteEntry, string, Filter, int);
public static void FromFile(Volume, out PaletteEntry, string, Filter, int, ref ImageInformation);
public static void FromFile(Volume, string, Box, Filter, int);
public static void FromFile(Volume, string, Box, Filter, int, ref ImageInformation);
public static void FromFile(Volume, string, Filter, int);
public static void FromFile(Volume, string, 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 any surface except the "zero" level 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