Share via


TextureLoader.SaveToStream(ImageFileFormat,BaseTexture) Method (Microsoft.DirectX.Direct3D)

Saves a volume to a graphics stream.

Definition

Visual Basic Public Shared Function SaveToStream( _
    ByVal destFormat As ImageFileFormat, _
    ByVal srcTexture As BaseTexture _
) As GraphicsStream
C# public static GraphicsStream SaveToStream(
    ImageFileFormat destFormat,
    BaseTexture srcTexture
);
C++ public:
static GraphicsStreamSaveToStream(
    ImageFileFormat destFormat,
    BaseTexturesrcTexture
);
JScript public static function SaveToStream(
    destFormat : ImageFileFormat,
    srcTexture : BaseTexture
) : GraphicsStream;

Parameters

destFormat Microsoft.DirectX.Direct3D.ImageFileFormat
An ImageFileFormat flag that specifies the file format to use when saving. See Remarks.
srcTexture Microsoft.DirectX.Direct3D.BaseTexture
A BaseTexture object that contains the texture to save.

Return Value

Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains the source image.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also