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

The type of export operation to perform

The quality factor to be used




In This Topic
    Export(String,Object) Method
    In This Topic
    Copy the pixel data for external access, controlled by Format and Quality
    Syntax
    'Declaration
     
    
    Public Overloads Function Export( _
       ByVal Format As String, _
       ByVal Quality As Object _
    ) As Byte()
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Format As String
    Dim Quality As Object
    Dim value() As Byte
     
    value = instance.Export(Format, Quality)
    public byte[] Export( 
       string Format,
       object Quality
    )

    Parameters

    Format

    The type of export operation to perform

    Quality

    The quality factor to be used

    Return Value

    byte array containing the exported version
    Remarks

    Only JPEG and BMP/DIB formats are supported directly, but other formats such as TIF may be supported via deveoloper supplied codecs.

    The following applies to JPEG file import:

    The Format parameter must be JPEG or JPG

    The following applies to DIB/BMP file export:

    Data will be uncompressed.
    If format is BMP, then a BMP file header is included at the start of the data. If type is DIB, then no header is included.
    The Format parameter must be DIB or BMP

    See for details of how to write and configure your own codecs.

    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