ZLibCompressionOptions.CompressionLevel 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定壓縮串流的壓縮等級。
public:
property int CompressionLevel { int get(); void set(int value); };
public int CompressionLevel { get; set; }
member this.CompressionLevel : int with get, set
Public Property CompressionLevel As Integer
屬性值
壓縮流的壓縮等級。 預設值為 -1。
例外狀況
該分數小於 -1 或大於9。
備註
可接受介於 -1 到 9(含)之間的任何值。 0 不產生壓縮,1 表示最佳速度,9 表示最佳壓縮率,
-1 請求預設壓縮等級,相當於 6。