|   |   |   | 
| TextureLoader.SaveToStream Method | Language: | 
Saves a volume to a graphics stream.
Visual Basic Public Shared Function SaveToStream( _ 
ByVal destFormat As ImageFileFormat, _
ByVal srcTexture As BaseTexture _
) As GraphicsStreamC# public static GraphicsStream SaveToStream( 
ImageFileFormat destFormat,
BaseTexture srcTexture
);C++ public: 
static GraphicsStream^ SaveToStream(
ImageFileFormat destFormat,
BaseTexture^ srcTexture
);JScript public static function SaveToStream( 
destFormat : ImageFileFormat,
srcTexture : BaseTexture
) : GraphicsStream;
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.
Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains the source image.
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