From aa3ee34e70c8ff136ac438f770f321584ab2067a Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 12 Oct 2017 10:15:32 +1100 Subject: [PATCH] Add RLE inverted test image --- tests/ImageSharp.Tests/TestImages.cs | 5 ++++- tests/Images/Input/Bmp/RunLengthEncoded-inverted.bmp | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/Images/Input/Bmp/RunLengthEncoded-inverted.bmp diff --git a/tests/ImageSharp.Tests/TestImages.cs b/tests/ImageSharp.Tests/TestImages.cs index 4a0d248e44..8be892233f 100644 --- a/tests/ImageSharp.Tests/TestImages.cs +++ b/tests/ImageSharp.Tests/TestImages.cs @@ -129,16 +129,19 @@ namespace SixLabors.ImageSharp.Tests public static class Bmp { + // Note: The inverted images have been generated by altering the BitmapInfoHeader using a hex editor. + // As such, the expected pixel output will be the reverse of the unaltered equivalent images. public const string Car = "Bmp/Car.bmp"; public const string F = "Bmp/F.bmp"; public const string NegHeight = "Bmp/neg_height.bmp"; public const string CoreHeader = "Bmp/BitmapCoreHeaderQR.bmp"; public const string V5Header = "Bmp/BITMAPV5HEADER.bmp"; public const string RLE = "Bmp/RunLengthEncoded.bmp"; + public const string RLEInverted = "Bmp/RunLengthEncoded-inverted.bmp"; public const string Bit8 = "Bmp/test8.bmp"; public const string Bit8Inverted = "Bmp/test8-inverted.bmp"; - public static readonly string[] All = { Car, F, NegHeight, CoreHeader, V5Header, RLE, Bit8, Bit8Inverted }; + public static readonly string[] All = { Car, F, NegHeight, CoreHeader, V5Header, RLE, RLEInverted, Bit8, Bit8Inverted }; } public static class Gif diff --git a/tests/Images/Input/Bmp/RunLengthEncoded-inverted.bmp b/tests/Images/Input/Bmp/RunLengthEncoded-inverted.bmp new file mode 100644 index 0000000000..f773daba7e --- /dev/null +++ b/tests/Images/Input/Bmp/RunLengthEncoded-inverted.bmp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4113b0ec1a834b902efa18fc8dc050eda1e18f9228cbc6b06b45d6337ad22c88 +size 7278