DicomObjects.NET.V8
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 Stream, _
       ByVal DestinationData As Array, _
       ByVal Size As Size, _
       ByVal Bits As Integer, _
       ByVal Planes As Integer, _
       ByVal TransferSyntax As String _
    ) 
    'Usage
     
    Dim CompressedData As Stream
    Dim DestinationData As Array
    Dim Size As Size
    Dim Bits As Integer
    Dim Planes As Integer
    Dim TransferSyntax As String
     
    CodecGlobal.Decompress(CompressedData, DestinationData, Size, Bits, Planes, TransferSyntax)
    public static void Decompress( 
       Stream CompressedData,
       Array DestinationData,
       Size Size,
       int Bits,
       int Planes,
       string TransferSyntax
    )
    public:
    static void Decompress( 
       Stream^ CompressedData,
       Array^ DestinationData,
       Size Size,
       int Bits,
       int Planes,
       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 3.5 or higher

    See Also