Microsoft DirectX 9.0 SDK Update (October 2004)

SurfaceLoader.SaveToStream Method

Language:

Note: This documentation is preliminary and is subject to change.

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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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