DicomObjects.NET10 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 decompression method 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 SkiaSharp.SKSizeI, _
       ByVal Bits As Integer, _
       ByVal Planes As Integer, _
       ByVal TransferSyntax As String _
    ) 
    'Usage
     
    
    Dim CompressedData As Stream
    Dim DestinationData As Array
    Dim size As SkiaSharp.SKSizeI
    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,
       SkiaSharp.SKSizeI size,
       int Bits,
       int Planes,
       string TransferSyntax
    )
    public:
    static void Decompress( 
       Stream^ CompressedData,
       Array^ DestinationData,
       SkiaSharp.SKSizeI 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 decompression method 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: 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