Bewerken

Share via


BrotliEncoder(Int32, Int32) Constructor

Definition

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.

Applies to