BrotliEncoder(Int32, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the BrotliEncoder structure using the specified quality and window.
public:
BrotliEncoder(int quality, int window);
public BrotliEncoder (int quality, int window);
new System.IO.Compression.BrotliEncoder : int * int -> System.IO.Compression.BrotliEncoder
Public Sub New (quality As Integer, window As Integer)
Parameters
- quality
- Int32
A number representing quality of the Brotli compression. 0 is the minimum (no compression), 11 is the maximum.
- window
- Int32
A number representing the encoder window bits. The minimum value is 10, and the maximum value is 24.
Exceptions
quality
is not between the minimum value of 0 and the maximum value of 11.
-or-
window
is not between the minimum value of 10 and the maximum value of 24.
Failed to create the BrotliEncoder instance.