From db154c2ed979ffd0b95492a3d87043b718498449 Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 29 Oct 2016 23:21:22 +0200 Subject: [PATCH] Added missing this. --- src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs | 6 +++--- src/ImageSharp/Image/ImageProperty.cs | 2 +- .../Samplers/Processors/RotateProcessor.cs | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs index f8c372c185..085d3b8366 100644 --- a/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs +++ b/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs @@ -488,9 +488,9 @@ namespace ImageSharp.Formats int componentCount = 3; // Write the Start Of Image marker. - WriteApplicationHeader((short)image.HorizontalResolution, (short)image.VerticalResolution); + this.WriteApplicationHeader((short)image.HorizontalResolution, (short)image.VerticalResolution); - WriteProfiles(image); + this.WriteProfiles(image); // Write the quantization tables. this.WriteDQT(); @@ -574,7 +574,7 @@ namespace ImageSharp.Formats where TColor : struct, IPackedPixel where TPacked : struct { - WriteProfile(image.ExifProfile); + this.WriteProfile(image.ExifProfile); } private void WriteProfile(ExifProfile exifProfile) diff --git a/src/ImageSharp/Image/ImageProperty.cs b/src/ImageSharp/Image/ImageProperty.cs index c99cf20fcf..055b3e049e 100644 --- a/src/ImageSharp/Image/ImageProperty.cs +++ b/src/ImageSharp/Image/ImageProperty.cs @@ -94,7 +94,7 @@ namespace ImageSharp { ImageProperty other = obj as ImageProperty; - return Equals(other); + return this.Equals(other); } /// diff --git a/src/ImageSharp/Samplers/Processors/RotateProcessor.cs b/src/ImageSharp/Samplers/Processors/RotateProcessor.cs index f7bf7a8373..38122c1597 100644 --- a/src/ImageSharp/Samplers/Processors/RotateProcessor.cs +++ b/src/ImageSharp/Samplers/Processors/RotateProcessor.cs @@ -39,7 +39,7 @@ namespace ImageSharp.Processors { const float Epsilon = .0001F; - if (Math.Abs(Angle) < Epsilon || Math.Abs(Angle - 90) < Epsilon || Math.Abs(Angle - 180) < Epsilon || Math.Abs(Angle - 270) < Epsilon) + if (Math.Abs(this.Angle) < Epsilon || Math.Abs(this.Angle - 90) < Epsilon || Math.Abs(this.Angle - 180) < Epsilon || Math.Abs(this.Angle - 270) < Epsilon) { return; } @@ -54,7 +54,7 @@ namespace ImageSharp.Processors /// public override void Apply(ImageBase target, ImageBase source, Rectangle targetRectangle, Rectangle sourceRectangle, int startY, int endY) { - if (OptimizedApply(target, source)) + if (this.OptimizedApply(target, source)) { return; } @@ -93,25 +93,25 @@ namespace ImageSharp.Processors private bool OptimizedApply(ImageBase target, ImageBase source) { const float Epsilon = .0001F; - if (Math.Abs(Angle) < Epsilon) + if (Math.Abs(this.Angle) < Epsilon) { target.ClonePixels(target.Width, target.Height, source.Pixels); return true; } - if (Math.Abs(Angle - 90) < Epsilon) + if (Math.Abs(this.Angle - 90) < Epsilon) { this.Rotate90(target, source); return true; } - if (Math.Abs(Angle - 180) < Epsilon) + if (Math.Abs(this.Angle - 180) < Epsilon) { this.Rotate180(target, source); return true; } - if (Math.Abs(Angle - 270) < Epsilon) + if (Math.Abs(this.Angle - 270) < Epsilon) { this.Rotate270(target, source); return true;