Visual Basic |
---|
Public Sub DecompressAll() |
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 CacheDecompressed & DecompressFrame, which cause a decompressed copy to be made, but do not remove the original compressed data.