In This Topic
Save this BitmapImage to an output stream using the specified image format
Syntax
'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Sub Save( _
ByVal As System.Windows.Media.Imaging.BitmapImage, _
ByVal As System.IO.Stream, _
ByVal As System.String _
)
'Usage
Dim BitmapImg As System.Windows.Media.Imaging.BitmapImage
Dim OutputStream As System.IO.Stream
Dim Format As System.String
BitmapImage_Extensions.Save(BitmapImg, OutputStream, Format)
[System.Runtime.CompilerServices.Extension()]
public static void Save(
System.Windows.Media.Imaging.BitmapImage ,
System.IO.Stream ,
System.string
)
public procedure Save(
: System.Windows.Media.Imaging.BitmapImage;
: System.IO.Stream;
: System.String
); static;
System.Runtime.CompilerServices.ExtensionAttribute()
public static function Save(
: System.Windows.Media.Imaging.BitmapImage,
: System.IO.Stream,
: System.String
);
[System.Runtime.CompilerServices.Extension()]
public: static void Save(
System.Windows.Media.Imaging.BitmapImage* ,
System.IO.Stream* ,
System.string*
)
[System.Runtime.CompilerServices.Extension()]
public:
static void Save(
System.Windows.Media.Imaging.BitmapImage^ ,
System.IO.Stream^ ,
System.String^
)
Parameters
- BitmapImg
- BitmapImage to save
- OutputStream
- Stream that holds the output image
- Format
- File format of the output image
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also