|
|
@ -1,8 +1,6 @@ |
|
|
// Copyright (c) Six Labors.
|
|
|
// Copyright (c) Six Labors.
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Processing.Processors.Dithering; |
|
|
|
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Processing.Processors.Quantization |
|
|
namespace SixLabors.ImageSharp.Processing.Processors.Quantization |
|
|
{ |
|
|
{ |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
@ -10,13 +8,11 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public class WebSafePaletteQuantizer : PaletteQuantizer |
|
|
public class WebSafePaletteQuantizer : PaletteQuantizer |
|
|
{ |
|
|
{ |
|
|
private static readonly QuantizerOptions DefaultOptions = new QuantizerOptions(); |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Initializes a new instance of the <see cref="WebSafePaletteQuantizer" /> class.
|
|
|
/// Initializes a new instance of the <see cref="WebSafePaletteQuantizer" /> class.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public WebSafePaletteQuantizer() |
|
|
public WebSafePaletteQuantizer() |
|
|
: this(DefaultOptions) |
|
|
: this(new QuantizerOptions()) |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|