VolumeLoader.Save Method ()

Saves a volume to a file.

Overload List

public static void Save(string, ImageFileFormat, Volume);
public static void Save(string, ImageFileFormat, Volume, Box);
public static void Save(string, ImageFileFormat, Volume, out PaletteEntry);
public static void Save(string, ImageFileFormat, Volume, out PaletteEntry, Box);

Remarks

This method supports the .bmp and .dds file formats. It handles conversion to and from compressed texture formats.

If the volume is non-dynamic (because a usage parameter was set to 0 at creation) and is located in video memory (the memory pool set to Default), VolumeLoader.Save fails because Microsoft Direct3D cannot lock non-dynamic volumes located in video memory.

Exceptions

InvalidCallException

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