From 11f6819a74eb0fca8be479daabad830cf8a24d14 Mon Sep 17 00:00:00 2001 From: Stefan Seeland <168659+stesee@users.noreply.github.com> Date: Sun, 7 Dec 2025 15:54:08 +0100 Subject: [PATCH] Updated examples --- .github/workflows/cla.yml | 2 +- .github/workflows/dotnet.yml | 2 + README.md | 36 ++++++++++++++--- SkiaSharpCompare/docs/nugetReadme.md | 37 ++++++++++++++---- .../SkiaSharpCompareTests.cs | 30 +++++++------- .../SkiaSharpStaticCompareTests.cs | 2 +- ...2px.png => pngPartialTransparent4x4px.png} | Bin ...arent2x2px.png => pngTransparent4x4px.png} | Bin SkiaSharpCompareTestNunit/TestFiles.cs | 4 +- 9 files changed, 81 insertions(+), 32 deletions(-) rename SkiaSharpCompareTestNunit/TestData/{pngPartialTransparent2x2px.png => pngPartialTransparent4x4px.png} (100%) rename SkiaSharpCompareTestNunit/TestData/{pngTransparent2x2px.png => pngTransparent4x4px.png} (100%) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 9e24d20..f68a795 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -21,7 +21,7 @@ jobs: path-to-document: 'https://github.com/Codeuctivity/SkiaSharp.Compare/blob/main/cla.md' # e.g. a CLA or a DCO document # branch should not be protected branch: 'cla' - allowlist: dependabot[bot],stesee,github-actions[bot],github-copilot[bot],copilot[bot] + allowlist: dependabot[bot],stesee,github-actions[bot],github-copilot[bot],copilot[bot],copilot-swe-agent[bot] #below are the optional inputs - If the optional inputs are not given, then default values will be taken #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 66af870..80513aa 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -5,6 +5,8 @@ env: on: push: + paths-ignore: + - '**.md' jobs: build: diff --git a/README.md b/README.md index b00f14c..fb05610 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,14 @@ NOTE: The Alpha-channel is ignored. bool isEqual = Compare.ImagesAreEqual("actual.png", "expected.png"); ``` -### Calculates diff +### [Calculates diff](https://dotnetfiddle.net/tTnq2j) ```csharp var calcDiff = Compare.CalcDiff("2x2PixelBlack.png", "2x2PixelWhite.png"); -Console.WriteLine($"PixelErrorCount: {diff.PixelErrorCount}"); -Console.WriteLine($"PixelErrorPercentage: {diff.PixelErrorPercentage}"); -Console.WriteLine($"AbsoluteError: {diff.AbsoluteError}"); -Console.WriteLine($"MeanError: {diff.MeanError}"); +Console.WriteLine($"PixelErrorCount: {calcDiff.PixelErrorCount}"); +Console.WriteLine($"PixelErrorPercentage: {calcDiff.PixelErrorPercentage}"); +Console.WriteLine($"AbsoluteError: {calcDiff.AbsoluteError}"); +Console.WriteLine($"MeanError: {calcDiff.MeanError}"); // PixelErrorCount: 4 // PixelErrorPercentage: 100 // AbsoluteError: 3060 @@ -65,3 +65,29 @@ Example - Compare two images using the created difference image. Add white pixel var maskedDiff = SkiaSharpCompare.CalcDiff(pathPic1, pathPic2, "differenceMask.png"); Assert.That(maskedDiff.AbsoluteError, Is.EqualTo(0)); ``` + +### [Configure transparency, enable metadata compare, ...](https://dotnetfiddle.net/lygaRU) + +```csharp +var comparer = new ImageCompare(ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel, pixelColorShiftTolerance: 5, compareMetadata: true); +var calcDiff = comparer.CalcDiff("pngPartialTransparent4x4Pixel.png", "2x2PixelWhite.png"); +// Displaying the differences +Console.WriteLine($"PixelErrorCount: {calcDiff.PixelErrorCount}"); +Console.WriteLine($"PixelErrorPercentage: {calcDiff.PixelErrorPercentage}"); +Console.WriteLine($"AbsoluteError: {calcDiff.AbsoluteError}"); +Console.WriteLine($"MeanError: {calcDiff.MeanError}"); +foreach (var metadataDifference in calcDiff.MetadataDifferences) + Console.WriteLine($"Metadata Difference: {metadataDifference}"); + +// PixelErrorCount: 16 +// PixelErrorPercentage: 100 +// AbsoluteError: 14272 +// MeanError: 892 +// Metadata Difference: [File:File Name, (pngPartialTransparent4x4Pixel.png, 2x2PixelWhite.png)] +// Metadata Difference: [File:File Size, (688 bytes, 556 bytes)] +// Metadata Difference: [PNG-IHDR:Color Type, (True Color with Alpha, True Color)] +// Metadata Difference: [PNG-IHDR:Image Height, (4, 2)] +// Metadata Difference: [PNG-IHDR:Image Width, (4, 2)] +// Metadata Difference: [PNG-tEXt:Textual Data, (Software: Paint.NET 5.1.2, Comment: Created with GIMP)] +// ... +``` \ No newline at end of file diff --git a/SkiaSharpCompare/docs/nugetReadme.md b/SkiaSharpCompare/docs/nugetReadme.md index 89ac9a7..96f410b 100644 --- a/SkiaSharpCompare/docs/nugetReadme.md +++ b/SkiaSharpCompare/docs/nugetReadme.md @@ -6,21 +6,42 @@ bool isEqual = Compare.ImagesAreEqual("actual.png", "expected.png"); ``` -## Calculates diff +## [Calculates diff](https://dotnetfiddle.net/tTnq2j) ```csharp var calcDiff = Compare.CalcDiff("2x2PixelBlack.png", "2x2PixelWhite.png"); -Console.WriteLine($"PixelErrorCount: {diff.PixelErrorCount}"); -Console.WriteLine($"PixelErrorPercentage: {diff.PixelErrorPercentage}"); -Console.WriteLine($"AbsoluteError: {diff.AbsoluteError}"); -Console.WriteLine($"MeanError: {diff.MeanError}"); +Console.WriteLine($"PixelErrorCount: {calcDiff.PixelErrorCount}"); +Console.WriteLine($"PixelErrorPercentage: {calcDiff.PixelErrorPercentage}"); +Console.WriteLine($"AbsoluteError: {calcDiff.AbsoluteError}"); +Console.WriteLine($"MeanError: {calcDiff.MeanError}"); // PixelErrorCount: 4 // PixelErrorPercentage: 100 // AbsoluteError: 3060 // MeanError: 765 ``` -## Further features +## [Configure transparency, enable metadata compare, ...](https://dotnetfiddle.net/lygaRU) -- Diff mask: allowing defined areas to diff from the compared image. -- Compare images that have different dimension +```csharp +var comparer = new ImageCompare(ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel, pixelColorShiftTolerance: 5, compareMetadata: true); +var calcDiff = comparer.CalcDiff("pngPartialTransparent4x4Pixel.png", "2x2PixelWhite.png"); +// Displaying the differences +Console.WriteLine($"PixelErrorCount: {calcDiff.PixelErrorCount}"); +Console.WriteLine($"PixelErrorPercentage: {calcDiff.PixelErrorPercentage}"); +Console.WriteLine($"AbsoluteError: {calcDiff.AbsoluteError}"); +Console.WriteLine($"MeanError: {calcDiff.MeanError}"); +foreach (var metadataDifference in calcDiff.MetadataDifferences) + Console.WriteLine($"Metadata Difference: {metadataDifference}"); + +// PixelErrorCount: 16 +// PixelErrorPercentage: 100 +// AbsoluteError: 14272 +// MeanError: 892 +// Metadata Difference: [File:File Name, (pngPartialTransparent4x4Pixel.png, 2x2PixelWhite.png)] +// Metadata Difference: [File:File Size, (688 bytes, 556 bytes)] +// Metadata Difference: [PNG-IHDR:Color Type, (True Color with Alpha, True Color)] +// Metadata Difference: [PNG-IHDR:Image Height, (4, 2)] +// Metadata Difference: [PNG-IHDR:Image Width, (4, 2)] +// Metadata Difference: [PNG-tEXt:Textual Data, (Software: Paint.NET 5.1.2, Comment: Created with GIMP)] +// ... +``` \ No newline at end of file diff --git a/SkiaSharpCompareTestNunit/SkiaSharpCompareTests.cs b/SkiaSharpCompareTestNunit/SkiaSharpCompareTests.cs index 8ab5f5c..ff97f57 100644 --- a/SkiaSharpCompareTestNunit/SkiaSharpCompareTests.cs +++ b/SkiaSharpCompareTestNunit/SkiaSharpCompareTests.cs @@ -61,7 +61,7 @@ public void ShouldVerifyThatImageStreamsSizeAreEqual(string pathActual, string p [TestCase(TestFiles.png0Rgba32, TestFiles.png0Rgba32, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] [TestCase(TestFiles.jpg0Rgb24, TestFiles.jpg0Rgb24, ResizeOption.DontResize, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.png0Rgba32, TestFiles.png0Rgba32, ResizeOption.DontResize, TransparencyOptions.IgnoreAlphaChannel)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngPartialTransparent2x2px, ResizeOption.DontResize, TransparencyOptions.IgnoreAlphaChannel)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngPartialTransparent4x4px, ResizeOption.DontResize, TransparencyOptions.IgnoreAlphaChannel)] public void ShouldVerifyThatImagesAreEqual(string pathActual, string pathExpected, ResizeOption resizeOption, TransparencyOptions transparencyOptions) { var sut = new ImageCompare(resizeOption, transparencyOptions); @@ -131,8 +131,8 @@ public void ShouldVerifyThatSkiaSharpImagesAreEqual(string pathActual, string pa [TestCase(TestFiles.renderedForm2, TestFiles.renderedForm1, 49267623, 60.794204096742348d, 174178, 21.49284304047384d, ResizeOption.Resize, 0, TransparencyOptions.CompareAlphaChannel)] [TestCase(TestFiles.colorShift1, TestFiles.colorShift2, 117896, 3.437201166180758d, 30398, 88.623906705539355d, ResizeOption.DontResize, 0, TransparencyOptions.CompareAlphaChannel)] [TestCase(TestFiles.colorShift1, TestFiles.colorShift2, 0, 0, 0, 0, ResizeOption.DontResize, 15, TransparencyOptions.CompareAlphaChannel)] - [TestCase(TestFiles.pngPartialTransparent2x2px, TestFiles.pngTransparent2x2px, 2048, 128.0d, 16, 100, ResizeOption.DontResize, 0, TransparencyOptions.CompareAlphaChannel)] - [TestCase(TestFiles.pngPartialTransparent2x2px, TestFiles.pngTransparent2x2px, 0, 0, 0, 0, ResizeOption.DontResize, 0, TransparencyOptions.IgnoreAlphaChannel)] + [TestCase(TestFiles.pngPartialTransparent4x4px, TestFiles.pngTransparent4x4px, 2048, 128.0d, 16, 100, ResizeOption.DontResize, 0, TransparencyOptions.CompareAlphaChannel)] + [TestCase(TestFiles.pngPartialTransparent4x4px, TestFiles.pngTransparent4x4px, 0, 0, 0, 0, ResizeOption.DontResize, 0, TransparencyOptions.IgnoreAlphaChannel)] public void ShouldVerifyThatImagesAreSemiEqual(string pathPic1, string pathPic2, int expectedAbsoluteError, double expectedMeanError, int expectedPixelErrorCount, double expectedPixelErrorPercentage, ResizeOption resizeOption, int colorShiftTolerance, TransparencyOptions transparencyOptions) { var sut = new ImageCompare(resizeOption, transparencyOptions, colorShiftTolerance); @@ -212,7 +212,7 @@ public void ShouldCalcDiffMaskSKBitmap(string pathPic1, string pathPic2, int exp [TestCase(TestFiles.png0Rgba32, TestFiles.png1Rgba32, null, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack2x2px, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngPartialTransparent2x2px, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngPartialTransparent4x4px, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] [TestCase(TestFiles.png0Rgba32, TestFiles.png1Rgba32, ResizeOption.DontResize, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.png0Rgba32, TestFiles.png1Rgba32, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack4x4px, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] @@ -259,15 +259,15 @@ private static void SaveAsPng(SKBitmap maskImage, FileStream fileStreamDifferenc [TestCase(TestFiles.jpg0Rgb24, TestFiles.jpg1Rgb24, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngWhite2x2px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngWhite2x2px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngWhite2x2px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.CompareAlphaChannel)] [TestCase(TestFiles.png0Rgba32, TestFiles.png1Rgba32, 0, 0, 0, 0, ResizeOption.DontResize, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.jpg0Rgb24, TestFiles.jpg1Rgb24, 0, 0, 0, 0, ResizeOption.DontResize, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.jpg0Rgb24, TestFiles.jpg1Rgb24, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngWhite2x2px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngWhite2x2px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngWhite2x2px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, TransparencyOptions.IgnoreAlphaChannel)] public void ShouldCalcDiffMaskSKBitmapAndUseOutcome(string pathPic1, string pathPic2, int expectedMeanError, int expectedAbsoluteError, int expectedPixelErrorCount, double expectedPixelErrorPercentage, ResizeOption resizeOption, TransparencyOptions transparencyOptions) { var sut = new ImageCompare(resizeOption, transparencyOptions); @@ -294,7 +294,7 @@ public void ShouldCalcDiffMaskSKBitmapAndUseOutcome(string pathPic1, string path Assert.That(maskedDiff.PixelErrorPercentage, Is.EqualTo(expectedPixelErrorPercentage), "PixelErrorPercentage"); } - [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack2x2px, TestFiles.pngTransparent2x2px, 765, 12240, 16, 100d, ResizeOption.Resize, 0)] + [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack2x2px, TestFiles.pngTransparent4x4px, 765, 12240, 16, 100d, ResizeOption.Resize, 0)] [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, 765, 12240, 16, 100d, ResizeOption.Resize, 0)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, 0)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, TestFiles.pngBlack2x2px, 0, 0, 0, 0, ResizeOption.Resize, 0)] @@ -363,8 +363,8 @@ public void CalcDiffStreams(string pathPic1, string pathPic2, int expectedMeanEr [TestCase(TestFiles.colorShift1, TestFiles.colorShift2, TransparencyOptions.CompareAlphaChannel, 20)] [TestCase(TestFiles.png0Rgba32, TestFiles.png1Rgba32, TransparencyOptions.IgnoreAlphaChannel, 0)] [TestCase(TestFiles.colorShift1, TestFiles.colorShift2, TransparencyOptions.IgnoreAlphaChannel, 20)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngPartialTransparent2x2px, TransparencyOptions.IgnoreAlphaChannel, 0)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngPartialTransparent2x2px, TransparencyOptions.CompareAlphaChannel, 0)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngPartialTransparent4x4px, TransparencyOptions.IgnoreAlphaChannel, 0)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngPartialTransparent4x4px, TransparencyOptions.CompareAlphaChannel, 0)] public void CalcDiffMaskImage_WhenSupplyingDiffMaskOfTwoImagesByFilePath_NoDifferences(string image1RelativePath, string image2RelativePath, TransparencyOptions transparencyOptions, int colorShiftTolerance) { var sut = new ImageCompare(ResizeOption.DontResize, transparencyOptions, colorShiftTolerance); @@ -443,7 +443,7 @@ public void CalcDiffMaskImage_WhenSupplyingDiffMaskOfTwoImagesByImage_NoDifferen [TestCase(TestFiles.jpg0Rgb24, TestFiles.png0Rgba32)] [TestCase(TestFiles.jpg1Rgb24, TestFiles.png1Rgba32)] [TestCase(TestFiles.colorShift1, TestFiles.colorShift2)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngPartialTransparent2x2px)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngPartialTransparent4x4px)] public void ShouldVerifyThatImagesAreNotEqual(string pathActual, string pathExpected) { var sut = new ImageCompare(); @@ -460,7 +460,7 @@ public void ShouldVerifyThatImagesAreNotEqual(string pathActual, string pathExpe [TestCase(TestFiles.jpg0Rgb24, TestFiles.png0Rgba32)] [TestCase(TestFiles.jpg1Rgb24, TestFiles.png1Rgba32)] [TestCase(TestFiles.colorShift1, TestFiles.colorShift2)] - [TestCase(TestFiles.pngTransparent2x2px, TestFiles.pngPartialTransparent2x2px)] + [TestCase(TestFiles.pngTransparent4x4px, TestFiles.pngPartialTransparent4x4px)] public void ShouldVerifyThatImageStreamAreNotEqual(string pathActual, string pathExpected) { var sut = new ImageCompare(); @@ -489,8 +489,8 @@ public void ShouldVerifyThatImageWithDifferentSizeThrows(string pathPic1, string [TestCase(TestFiles.png0Rgba32, TestFiles.png0Rgba32, TestFiles.pngBlack2x2px)] [TestCase(TestFiles.png0Rgba32, TestFiles.pngBlack2x2px, TestFiles.png0Rgba32)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.png0Rgba32, TestFiles.png0Rgba32)] - [TestCase(TestFiles.pngPartialTransparent2x2px, TestFiles.png0Rgba32, TestFiles.png0Rgba32)] - [TestCase(TestFiles.png0Rgba32, TestFiles.png0Rgba32, TestFiles.pngPartialTransparent2x2px)] + [TestCase(TestFiles.pngPartialTransparent4x4px, TestFiles.png0Rgba32, TestFiles.png0Rgba32)] + [TestCase(TestFiles.png0Rgba32, TestFiles.png0Rgba32, TestFiles.pngPartialTransparent4x4px)] public void ShouldVerifyThatImageWithDifferentSizeThrows(string pathPic1, string pathPic2, string pathPic3) { var sut = new ImageCompare(); diff --git a/SkiaSharpCompareTestNunit/SkiaSharpStaticCompareTests.cs b/SkiaSharpCompareTestNunit/SkiaSharpStaticCompareTests.cs index 730a416..9c29f4e 100644 --- a/SkiaSharpCompareTestNunit/SkiaSharpStaticCompareTests.cs +++ b/SkiaSharpCompareTestNunit/SkiaSharpStaticCompareTests.cs @@ -261,7 +261,7 @@ public void ShouldCalcDiffMaskSKBitmapAndUseOutcome(string pathPic1, string path Assert.That(maskedDiff.PixelErrorPercentage, Is.EqualTo(expectedPixelErrorPercentage), "PixelErrorPercentage"); } - [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack2x2px, TestFiles.pngTransparent2x2px, 765, 12240, 16, 100d, ResizeOption.Resize, 0)] + [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack2x2px, TestFiles.pngTransparent4x4px, 765, 12240, 16, 100d, ResizeOption.Resize, 0)] [TestCase(TestFiles.pngWhite2x2px, TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, 765, 12240, 16, 100d, ResizeOption.Resize, 0)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, 0, 0, 0, 0, ResizeOption.Resize, 0)] [TestCase(TestFiles.pngBlack2x2px, TestFiles.pngBlack4x4px, TestFiles.pngBlack2x2px, 0, 0, 0, 0, ResizeOption.Resize, 0)] diff --git a/SkiaSharpCompareTestNunit/TestData/pngPartialTransparent2x2px.png b/SkiaSharpCompareTestNunit/TestData/pngPartialTransparent4x4px.png similarity index 100% rename from SkiaSharpCompareTestNunit/TestData/pngPartialTransparent2x2px.png rename to SkiaSharpCompareTestNunit/TestData/pngPartialTransparent4x4px.png diff --git a/SkiaSharpCompareTestNunit/TestData/pngTransparent2x2px.png b/SkiaSharpCompareTestNunit/TestData/pngTransparent4x4px.png similarity index 100% rename from SkiaSharpCompareTestNunit/TestData/pngTransparent2x2px.png rename to SkiaSharpCompareTestNunit/TestData/pngTransparent4x4px.png diff --git a/SkiaSharpCompareTestNunit/TestFiles.cs b/SkiaSharpCompareTestNunit/TestFiles.cs index 4471bc1..d22b333 100644 --- a/SkiaSharpCompareTestNunit/TestFiles.cs +++ b/SkiaSharpCompareTestNunit/TestFiles.cs @@ -9,8 +9,8 @@ internal static class TestFiles public const string pngBlack2x2px = "./../../../TestData/Black.png"; public const string pngBlack4x4px = "./../../../TestData/BlackDoubleSize.png"; public const string pngWhite2x2px = "./../../../TestData/White.png"; - public const string pngTransparent2x2px = "./../../../TestData/pngTransparent2x2px.png"; - public const string pngPartialTransparent2x2px = "./../../../TestData/pngPartialTransparent2x2px.png"; + public const string pngTransparent4x4px = "./../../../TestData/pngTransparent4x4px.png"; + public const string pngPartialTransparent4x4px = "./../../../TestData/pngPartialTransparent4x4px.png"; public const string renderedForm1 = "./../../../TestData/HC007-Test-02-3-OxPt.html1.png"; public const string renderedForm2 = "./../../../TestData/HC007-Test-02-3-OxPt.html2.png"; public const string colorShift1 = "./../../../TestData/ColorShift1.png";