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, _
ByRef sourcePalette As PaletteEntry _
) As GraphicsStreamC# public static GraphicsStream SaveToStream(
ImageFileFormat destFormat,
BaseTexture srcTexture,
out PaletteEntry sourcePalette
);C++ public:
static GraphicsStream^ SaveToStream(
ImageFileFormat destFormat,
BaseTexture^ srcTexture,
[Out] PaletteEntry% sourcePalette
);JScript public static function SaveToStream(
destFormat : ImageFileFormat,
srcTexture : BaseTexture,
sourcePalette : PaletteEntry
) : 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.sourcePalette Microsoft.DirectX.Direct3D.PaletteEntry[]
A PaletteEntry structure that contains a 256-color palette. This parameter can be 0.
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