DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / ChangeToDecompressed Method
Example

In This Topic
    ChangeToDecompressed Method (DicomDataSet)
    In This Topic
    Simulate the effect of writing out as a Decompressed Image
    Syntax
    'Declaration
     
    
    Public Sub ChangeToDecompressed() 
    public void ChangeToDecompressed()
    Remarks
    Unlike DecompressAll which is designed merely for performance improvement, this method permanently changes the data as if written out in an uncompressed transfer syntax and then read back. This might therefore change the Photometric interpretation etc. (e.g. from YBR_FULL_422 to RGB)
    Example
    DicomDataSet ds = new DicomDataSet("Compressed_DataSet.dcm");
    ds.ChangeToDecompressed();
                        
    // Dataset now has uncompressed pixel data - optionally write modified ds to new file
    ds.Write("Decompressed_DataSet.dcm");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also