compression_level Property
The compression level to use.
Syntax
def get_compression_level() -> int: ... def set_compression_level(value: int) -> None: ...
compression_level = property(get_compression_level, set_compression_level)
Default Value
4
Remarks
The compression level to use, from 1 to 6. Higher values will cause the component to compress better; lower values will cause the component to compress faster.
When get_compression_stream is invoked the stream will be created with the specified compression level. After a stream has been created it is independent of the control, and changing compression_level will have no effect on existing streams.