Setting the Level of Compression

To minimize the file size of the compressed file, set the compression level on the C1ZStreamWriter's constructor by using the following code:

      C#

Note that the code sample above sets the compression level to BestCompression, which has the highest compression time and the lowest speed. Other compression level options on the C1ZStreamWriter's constructor include the following:

      BestSpeed has low compression time and the highest speed.

      DefaultCompression has normal compression time and speed.

      NoCompression has no compression.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.