DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / BitmapImage_Extensions Class / Save Method
BitmapImage to save
Stream that holds the output image
File format of the output image






In This Topic
    Save Method
    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 BitmapImg As System.Windows.Media.Imaging.BitmapImage, _
       ByVal OutputStream As System.IO.Stream, _
       ByVal Format 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 BitmapImg,
       System.IO.Stream OutputStream,
       System.string Format
    )
    public procedure Save( 
        BitmapImg: System.Windows.Media.Imaging.BitmapImage;
        OutputStream: System.IO.Stream;
        Format: System.String
    ); static; 
    System.Runtime.CompilerServices.ExtensionAttribute()
    public static function Save( 
       BitmapImg : System.Windows.Media.Imaging.BitmapImage,
       OutputStream : System.IO.Stream,
       Format : System.String
    );
    [System.Runtime.CompilerServices.Extension()]
    public: static void Save( 
       System.Windows.Media.Imaging.BitmapImage* BitmapImg,
       System.IO.Stream* OutputStream,
       System.string* Format
    ) 
    [System.Runtime.CompilerServices.Extension()]
    public:
    static void Save( 
       System.Windows.Media.Imaging.BitmapImage^ BitmapImg,
       System.IO.Stream^ OutputStream,
       System.String^ Format
    ) 

    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