From 0fa708ea8b1662a951912521fbf6e4fca4123e5d Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 30 Nov 2025 15:31:36 +0000
Subject: [PATCH 1/2] Initial plan
From e2e75648566838be26e81a0143ae0ff958db3c3f Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 30 Nov 2025 15:34:18 +0000
Subject: [PATCH 2/2] Fix inconsistent PascalCase parameter naming to camelCase
in ImageCompare.cs
Co-authored-by: stesee <168659+stesee@users.noreply.github.com>
---
SkiaSharpCompare/ImageCompare.cs | 40 ++++++++++++++++----------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/SkiaSharpCompare/ImageCompare.cs b/SkiaSharpCompare/ImageCompare.cs
index 0dcd5e1..46ad81e 100644
--- a/SkiaSharpCompare/ImageCompare.cs
+++ b/SkiaSharpCompare/ImageCompare.cs
@@ -117,18 +117,18 @@ public ICompareResult CalcDiff(SKBitmap pic1, SKBitmap pic2)
///
/// Calculates the difference between two in-memory images represented as objects.
///
- ///
- ///
+ ///
+ ///
///
///
- public ICompareResult CalcDiff(SKBitmap Pic1, SKBitmap Pic2, SKBitmap differenceMaskPic)
+ public ICompareResult CalcDiff(SKBitmap pic1, SKBitmap pic2, SKBitmap differenceMaskPic)
{
if (CompareMetadata)
{
throw new NotSupportedException("Metadata comparison is not implemented for SKBitmap inputs. https://github.com/mono/SkiaSharp/issues/1139 Use the overload with streams or filepath to get support for metadata comparison.");
}
- return Compare.CalcDiff(Pic1, Pic2, differenceMaskPic, ResizeOption, PixelColorShiftTolerance, TransparencyOptions);
+ return Compare.CalcDiff(pic1, pic2, differenceMaskPic, ResizeOption, PixelColorShiftTolerance, TransparencyOptions);
}
///
@@ -173,23 +173,23 @@ public ICompareResult CalcDiff(Stream pic1, Stream pic2, SKBitmap maskImage)
///
/// Calculates a difference mask image that highlights the differences between two images located at the specified file paths.
///
- ///
- ///
+ ///
+ ///
///
- public SKBitmap CalcDiffMaskImage(string PathPic1, string PathPic2)
+ public SKBitmap CalcDiffMaskImage(string pathPic1, string pathPic2)
{
- return Compare.CalcDiffMaskImage(PathPic1, PathPic2, ResizeOption, PixelColorShiftTolerance, TransparencyOptions);
+ return Compare.CalcDiffMaskImage(pathPic1, pathPic2, ResizeOption, PixelColorShiftTolerance, TransparencyOptions);
}
///
/// Calculates a difference mask image that highlights the differences between two in-memory images represented as objects.
///
- ///
- ///
+ ///
+ ///
///
- public SKBitmap CalcDiffMaskImage(SKBitmap Pic1, SKBitmap Pic2)
+ public SKBitmap CalcDiffMaskImage(SKBitmap pic1, SKBitmap pic2)
{
- return Compare.CalcDiffMaskImage(Pic1, Pic2, ResizeOption, PixelColorShiftTolerance, TransparencyOptions);
+ return Compare.CalcDiffMaskImage(pic1, pic2, ResizeOption, PixelColorShiftTolerance, TransparencyOptions);
}
///
@@ -242,12 +242,12 @@ public SKBitmap CalcDiffMaskImage(SKBitmap image1, SKBitmap image2, SKBitmap dif
///
/// Checks if two images located at the specified file paths are identical, considering the configured options for resizing,
///
- ///
- ///
+ ///
+ ///
///
- public bool ImagesAreEqual(string PathActual, string PathExpected)
+ public bool ImagesAreEqual(string pathActual, string pathExpected)
{
- return Compare.ImagesAreEqual(PathActual, PathExpected, ResizeOption, PixelColorShiftTolerance, TransparencyOptions, CompareMetadata);
+ return Compare.ImagesAreEqual(pathActual, pathExpected, ResizeOption, PixelColorShiftTolerance, TransparencyOptions, CompareMetadata);
}
///
@@ -275,12 +275,12 @@ public bool ImagesAreEqual(SKBitmap actual, SKBitmap expected)
///
/// Checks if two images have the same dimensions (width and height).
///
- ///
- ///
+ ///
+ ///
///
- public static bool ImagesHaveEqualSize(string PathActual, string PathExpected)
+ public static bool ImagesHaveEqualSize(string pathActual, string pathExpected)
{
- return Compare.ImagesHaveEqualSize(PathActual, PathExpected);
+ return Compare.ImagesHaveEqualSize(pathActual, pathExpected);
}
}
}
\ No newline at end of file