VolumeLoader.Save Method

Language:

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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center