RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCompressionStream.CompressionRate Property

Returns the percentage by which the data has been compressed.

Pascal
property CompressionRate: Single;
C++
__property Single CompressionRate;

The compression rate is a read-only property. Its value is calculated and updated as data is written to the stream. For example, if a total of 100 raw (uncompressed) bytes have been written to the stream, and only 25 compressed bytes have been written out, then reading the CompressionRate property will return a value of 75. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!