TextureLoader.Save Method

Language:

Saves a texture to a file.

Overload List

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

Remarks

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

If the volume is not dynamic (because a usage parameter was set to 0 at its creation) and is located in video memory (that is, the memory pool set to Default), this method 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.

See Also


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