Poker
3 years ago
No known key found for this signature in database
GPG Key ID: 720AFAD63099D9CB
2 changed files with
4 additions and
7 deletions
-
src/ImageSharp/Formats/Png/PngEncoder.cs
-
src/ImageSharp/Formats/Png/PngEncoderCore.cs
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Advanced; |
|
|
|
|
|
|
|
@ -13,11 +14,9 @@ public class PngEncoder : QuantizingImageEncoder |
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="PngEncoder"/> class.
|
|
|
|
/// </summary>
|
|
|
|
public PngEncoder() => |
|
|
|
|
|
|
|
// We set the quantizer to null here to allow the underlying encoder to create a
|
|
|
|
// quantizer with options appropriate to the encoding bit depth.
|
|
|
|
this.Quantizer = null!; |
|
|
|
// We set the quantizer to null here to allow the underlying encoder to create a
|
|
|
|
// quantizer with options appropriate to the encoding bit depth.
|
|
|
|
public PngEncoder() => this.Quantizer = null; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the number of bits per sample or per palette index (not per pixel).
|
|
|
|
|
|
|
|
@ -206,8 +206,6 @@ internal sealed class PngEncoderCore : IImageEncoderInternals, IDisposable |
|
|
|
{ |
|
|
|
this.previousScanline?.Dispose(); |
|
|
|
this.currentScanline?.Dispose(); |
|
|
|
this.previousScanline = null!; |
|
|
|
this.currentScanline = null!; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|