DicomObjects.NET.V8
DicomObjects Namespace / DicomImage 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 image 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 DicomImage
    Dim Format As String
    Dim Quality As Object
    Dim value() As Byte
     
    value = instance.Export(Format, Quality)
    public byte[] Export( 
       string Format,
       object Quality
    )
    public:
    array<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: .NET CLR 4.0 or higher

    See Also