Browse Source

rename variable Fix #262

af/merge-core
JimBobSquarePants 9 years ago
parent
commit
7c71b37716
  1. 6
      src/ImageSharp/Formats/Gif/GifEncoderCore.cs

6
src/ImageSharp/Formats/Gif/GifEncoderCore.cs

@ -98,10 +98,10 @@ namespace SixLabors.ImageSharp.Formats.Gif
this.hasFrames = image.Frames.Count > 1; this.hasFrames = image.Frames.Count > 1;
var ditheredQuantizer = (IQuantizer<TPixel>)this.quantizer; var pixelQuantizer = (IQuantizer<TPixel>)this.quantizer;
// Quantize the image returning a palette. // Quantize the image returning a palette.
QuantizedImage<TPixel> quantized = ditheredQuantizer.Quantize(image.Frames.RootFrame, size); QuantizedImage<TPixel> quantized = pixelQuantizer.Quantize(image.Frames.RootFrame, size);
int index = this.GetTransparentIndex(quantized); int index = this.GetTransparentIndex(quantized);
@ -124,7 +124,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
{ {
if (quantized == null) if (quantized == null)
{ {
quantized = ditheredQuantizer.Quantize(frame, size); quantized = pixelQuantizer.Quantize(frame, size);
} }
this.WriteGraphicalControlExtension(frame.MetaData, writer, this.GetTransparentIndex(quantized)); this.WriteGraphicalControlExtension(frame.MetaData, writer, this.GetTransparentIndex(quantized));

Loading…
Cancel
Save