SKPngEncoderOptions.FilterFlags Property

Definition

Gets or sets the filtering flags.

public SkiaSharp.SKPngEncoderFilterFlags FilterFlags { get; set; }

Property Value

Remarks

If a single filter is chosen, then that filter will be used for every row.

If multiple filters are chosen, then a heuristic will be used to guess which filter will encode smallest, then apply that filter. This happens on a per row basis, different rows can use different filters.

Using a single filter (or less filters) is typically faster. Trying all of the filters may help minimize the output file size.

Applies to