Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void CastBitmap_to_AnyBitmap()

bitmap.Save("expected.bmp");
anyBitmap.SaveAs("result.bmp");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.bmp", "result.bmp", true);
}

Expand All @@ -217,7 +217,7 @@ public void CastImage_to_AnyBitmap()

bitmap.Save("expected.bmp");
anyBitmap.SaveAs("result.bmp");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.bmp", "result.bmp", true);
}

Expand Down Expand Up @@ -397,7 +397,7 @@ public void CastSKBitmap_to_AnyBitmap()

SaveSkiaBitmap(skBitmap, "expected.png");
anyBitmap.SaveAs("result.png");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.png", "result.png", true);
}

Expand Down Expand Up @@ -430,7 +430,7 @@ public void CastSKImage_to_AnyBitmap()

SaveSkiaImage(skImage, "expected.png");
anyBitmap.SaveAs("result.png");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.png", "result.png", true);
}

Expand Down Expand Up @@ -463,7 +463,7 @@ public void CastSixLabors_to_AnyBitmap()

imgSharp.Save("expected.bmp");
anyBitmap.SaveAs("result.bmp");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.bmp", "result.bmp", true);
}

Expand Down Expand Up @@ -524,7 +524,7 @@ public void CastBitmap_to_AnyBitmap_using_FromBitmap()

bitmap.Save("expected.png");
anyBitmap.SaveAs("result.png");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.png", "result.png", true);
}

Expand Down Expand Up @@ -755,6 +755,7 @@ public void Should_Resize_Image(string fileName, int width, int height)
var resizeAnyBitmap = new AnyBitmap(anyBitmap, width, height);
_ = resizeAnyBitmap.Width.Should().Be(width);
_ = resizeAnyBitmap.Height.Should().Be(height);
resizeAnyBitmap.GetPixel(0, 0); //should not throw error
}

[FactWithAutomaticDisplayName]
Expand Down Expand Up @@ -936,7 +937,7 @@ public void CastMaui_to_AnyBitmap()

SaveMauiImages(image, "expected.bmp");
anyBitmap.SaveAs("result.bmp");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.bmp", "result.bmp", true);
}

Expand All @@ -948,7 +949,7 @@ public void CastMaui_from_AnyBitmap()

anyBitmap.SaveAs("expected.bmp");
SaveMauiImages(image, "result.bmp");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertImageAreEqual("expected.bmp", "result.bmp", true);
}
#endif
Expand All @@ -972,6 +973,7 @@ public void Create_New_Image_Instance()

blankBitmap.Width.Should().Be(8);
blankBitmap.Height.Should().Be(8);
blankBitmap.GetPixel(0, 0); //should not throw error
}

[FactWithAutomaticDisplayName]
Expand Down Expand Up @@ -1070,7 +1072,7 @@ public void CastAnyBitmap_from_SixLabors()

image.Save("expected.bmp");
anyBitmap.SaveAs("result.bmp");

anyBitmap.GetPixel(0, 0); //should not throw error
AssertLargeImageAreEqual("expected.bmp", "result.bmp", true);
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3236,7 +3236,7 @@ private void LoadAndResizeImage(AnyBitmap original, int width, int height)
_lazyImage = new Lazy<IReadOnlyList<Image>>(() =>
{

using var image = Image.Load<Rgba32>(Binary);
var image = Image.Load<Rgba32>(Binary);
image.Mutate(img => img.Resize(width, height));

//update Binary
Expand Down