Share via


SurfaceLoader.SaveToStream Method ()

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.