From ed69858f24c720598af4b39acc0675d0e570edfc Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 2 May 2017 11:13:16 +1000 Subject: [PATCH] Rename to hasFrames --- src/ImageSharp/Formats/Gif/GifEncoderCore.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs index becb56eabf..5dc1a150d0 100644 --- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs @@ -38,7 +38,7 @@ namespace ImageSharp.Formats /// /// Whether the current image has multiple frames. /// - private bool hasMultipleFrames; + private bool hasFrames; /// /// Initializes a new instance of the class. @@ -79,11 +79,11 @@ namespace ImageSharp.Formats this.bitDepth = ImageMaths.GetBitsNeededForColorDepth(quality); // Quantize the image returning a palette. - this.hasMultipleFrames = image.Frames.Any(); + this.hasFrames = image.Frames.Any(); // Dithering when animating gifs is a bad idea as we introduce pixel tearing across frames. IQuantizer ditheredQuantizer = (IQuantizer)this.Quantizer; - ditheredQuantizer.Dither = !this.hasMultipleFrames; + ditheredQuantizer.Dither = !this.hasFrames; QuantizedImage quantized = ditheredQuantizer.Quantize(image, quality); @@ -103,7 +103,7 @@ namespace ImageSharp.Formats this.WriteImageData(quantized, writer); // Write additional frames. - if (this.hasMultipleFrames) + if (this.hasFrames) { this.WriteApplicationExtension(writer, image.MetaData.RepeatCount, image.Frames.Count);