DicomObjects Reference
DicomObjects Reference / DicomImage Object / DecompressAll Method
In This Topic
    DecompressAll Method
    In This Topic
    Description
    Causes all frames of an image to be decompressed
    Syntax
    Visual Basic
    Public Sub DecompressAll() 
    Remarks

    he normal policy adopted by DicomObjects for the handling of compressed images is to decompress frames only when necessary, and to keep the decompressed versions only for as long as is necessary for display or translation, thereby minimising image load times, and memory use.  This behaviour is not, however, always appropriate, especially when cine sequences are shown, or where modifications need to be made to the image.  When this method is called, all frames are decompressed and held in RAM, replacing the original compressed version, thereby greatly speeding subsequent display, though needing much more memory.

    Once this method has been executed, all reference to the compressed version is lost, and the ReceivedSyntax property is reset to little-endian default (1.2.840.10008.1.2).
    See also CacheDecompressedDecompressFrame, which cause a decompressed copy to be made, but do not remove the original compressed data.

    See Also