DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomDataSet Class / Export Method / Export(String,ImageFormat,Int32) Method

The filename where you would like to save the exported image

The file format you would like to export image to

The quality factor to be used




In This Topic
    Export(String,ImageFormat,Int32) Method
    In This Topic
    Export DicomImage to supported Image Format
    Syntax
    'Declaration
     
    
    Public Overloads Sub Export( _
       ByVal Filename As String, _
       ByVal Format As ImageFormat, _
       ByVal Quality As Integer _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Filename As String
    Dim Format As ImageFormat
    Dim Quality As Integer
     
    instance.Export(Filename, Format, Quality)
    public void Export( 
       string Filename,
       ImageFormat Format,
       int Quality
    )
    public:
    void Export( 
       String^ Filename,
       ImageFormat^ Format,
       int Quality
    ) 

    Parameters

    Filename

    The filename where you would like to save the exported image

    Format

    The file format you would like to export image to

    Quality

    The quality factor to be used

    Remarks
    This method provides a native .NET approach to export images. An internal BMP image is created and the .NET bmp.Save method is used. For more flexibity, it is possible to build your own export routine, by using DicomImage.Bitmap method to get a bitmap image out of the DicomImage then using the native .NET approaches to convert it to any format you like.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also