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

In This Topic
    ChangeToDecompressed Method (DicomImage)
    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.Graphics. from YBR_FULL_422 to RGB)
    Example
    // Load a compressed DICOM image e.g. JPEG2000Lossy
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    image.ChangeToDecompressed();
    // Write decompressed image to disk
    image.Write("decompressed_image.dcm");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also