SurfaceLoader.SaveToStream Method

Language:

Saves a surface to a stream.

Overload List

public static GraphicsStream SaveToStream(ImageFileFormat, Surface);
public static GraphicsStream SaveToStream(ImageFileFormat, Surface, out PaletteEntry);
public static GraphicsStream SaveToStream(ImageFileFormat, Surface, out PaletteEntry, Rectangle);
public static GraphicsStream SaveToStream(ImageFileFormat, Surface, Rectangle);

Remarks

This method handles conversion to and from compressed texture formats.

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