DicomObjects.NET.8.48 Documentation
DicomObjects.DicomCodecs Namespace / CodecGlobal Class / Decompress Method
The data to be decompressed
The destination to put the decompressed data into.
Size of the image
Bit depth
1 for monochrome, or 3 for colour
This indicates the decopmression metho to use






In This Topic
    Decompress Method (CodecGlobal)
    In This Topic
    Experimental independent decompression method
    Syntax
    'Declaration
     
    
    Public Shared Sub Decompress( _
       ByVal CompressedData As System.IO.Stream, _
       ByVal DestinationData As System.Array, _
       ByVal Size As System.Drawing.Size, _
       ByVal Bits As System.Integer, _
       ByVal Planes As System.Integer, _
       ByVal TransferSyntax As System.String _
    ) 
    'Usage
     
    
    Dim CompressedData As System.IO.Stream
    Dim DestinationData As System.Array
    Dim Size As System.Drawing.Size
    Dim Bits As System.Integer
    Dim Planes As System.Integer
    Dim TransferSyntax As System.String
     
    CodecGlobal.Decompress(CompressedData, DestinationData, Size, Bits, Planes, TransferSyntax)
    public static void Decompress( 
       System.IO.Stream CompressedData,
       System.Array DestinationData,
       System.Drawing.Size Size,
       System.int Bits,
       System.int Planes,
       System.string TransferSyntax
    )
    public procedure Decompress( 
        CompressedData: System.IO.Stream;
        DestinationData: System.Array;
        Size: System.Drawing.Size;
        Bits: System.Integer;
        Planes: System.Integer;
        TransferSyntax: System.String
    ); static; 
    public static function Decompress( 
       CompressedData : System.IO.Stream,
       DestinationData : System.Array,
       Size : System.Drawing.Size,
       Bits : System.int,
       Planes : System.int,
       TransferSyntax : System.String
    );
    public: static void Decompress( 
       System.IO.Stream* CompressedData,
       System.Array* DestinationData,
       System.Drawing.Size Size,
       System.int Bits,
       System.int Planes,
       System.string* TransferSyntax
    ) 
    public:
    static void Decompress( 
       System.IO.Stream^ CompressedData,
       System.Array^ DestinationData,
       System.Drawing.Size Size,
       System.int Bits,
       System.int Planes,
       System.String^ TransferSyntax
    ) 

    Parameters

    CompressedData
    The data to be decompressed
    DestinationData
    The destination to put the decompressed data into.
    Size
    Size of the image
    Bits
    Bit depth
    Planes
    1 for monochrome, or 3 for colour
    TransferSyntax
    This indicates the decopmression metho to use
    Remarks

    This method uses the same internal codecs to decompress data as would be used by DicomObjects. Although most formats contain internal information about the size, format, bit depth of the data etc., other such as RLE do not, and so for consistency with the existing internal patterns, these must be supplied as parameters to the method.

    The DestinationDataarray must be an array of byte or ushort (to match the bit depth of the data) and must be preallocated to the correct size before this call.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also