Class WebpEncoder
Image encoder for writing an image to a stream in the Webp format.
Assembly: SixLabors.ImageSharp.dll
public sealed class WebpEncoder : IImageEncoder
Properties
|
Improve this Doc
View Source
Declaration
public int EntropyPasses { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public WebpFileFormatType? FileFormat { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int FilterStrength { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public WebpEncodingMethod Method { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool NearLossless { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int NearLosslessQuality { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int Quality { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int SpatialNoiseShaping { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public WebpTransparentColorMode TransparentColorMode { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool UseAlphaCompression { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Encodes the image to the specified stream from the Image<TPixel>.
Declaration
public void Encode<TPixel>(Image<TPixel> image, Stream stream)
where TPixel : struct, IPixel<TPixel>
Parameters
Type Parameters
Name |
Description |
TPixel |
The pixel format.
|
|
Improve this Doc
View Source
Encodes the image to the specified stream from the Image<TPixel>.
Declaration
public Task EncodeAsync<TPixel>(Image<TPixel> image, Stream stream, CancellationToken cancellationToken)
where TPixel : struct, IPixel<TPixel>
Parameters
Returns
Type |
Description |
Task |
A Task representing the asynchronous operation.
|
Type Parameters
Name |
Description |
TPixel |
The pixel format.
|
Implements