Class PngEncoder
Image encoder for writing image data to a stream in png format.
Assembly: SixLabors.ImageSharp.dll
public sealed class PngEncoder : IImageEncoder
Properties
|
Improve this Doc
View Source
Declaration
public PngBitDepth? BitDepth { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public PngChunkFilter? ChunkFilter { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public PngColorType? ColorType { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public PngCompressionLevel CompressionLevel { get; set; }
Property Value
Type |
Description |
SixLabors.ImageSharp.Formats.Png.PngCompressionLevel |
|
|
Improve this Doc
View Source
Declaration
public PngFilterMethod? FilterMethod { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public float? Gamma { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool IgnoreMetadata { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public PngInterlaceMode? InterlaceMethod { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public IQuantizer Quantizer { get; set; }
Property Value
|
Improve this Doc
View Source
TextCompressionThreshold
Declaration
public int TextCompressionThreshold { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public byte Threshold { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public PngTransparentColorMode TransparentColorMode { 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 async 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