Skip to content

Commit 8cf4a96

Browse files
brianpopowJimBobSquarePants
authored andcommitted
Bitmap decoder now can decode bitmap arrays (SixLabors#930)
* Bitmap Decoder can now decode BitmapArray * Add tests for bitmap metadata decoing. Fix an issue that a bitmap with a v5 header would be set in the metadata as an v4 header. * Fixed issue with decoding bitmap arrays: color map size was not determined correctly. Added more test images. * Refactor colormap size duplicate declaration. * Fixed an issue, that when an unsupported bitmap is loaded the typ marker was not correctly shown in the error message
1 parent bef4b41 commit 8cf4a96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ImageSharp.Tests/TestImages.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,14 @@ public static class Bmp
261261
public const string Bit8Palette4 = "Bmp/pal8-0.bmp";
262262
public const string Os2v2Short = "Bmp/pal8os2v2-16.bmp";
263263
public const string Os2v2 = "Bmp/pal8os2v2.bmp";
264+
public const string Os2BitmapArray9s = "Bmp/9S.BMP";
265+
public const string Os2BitmapArrayDiamond = "Bmp/DIAMOND.BMP";
266+
public const string Os2BitmapArrayMarble = "Bmp/GMARBLE.BMP";
267+
public const string Os2BitmapArraySkater = "Bmp/SKATER.BMP";
268+
public const string Os2BitmapArraySpade = "Bmp/SPADE.BMP";
269+
public const string Os2BitmapArraySunflower = "Bmp/SUNFLOW.BMP";
270+
public const string Os2BitmapArrayWarpd = "Bmp/WARPD.BMP";
271+
public const string Os2BitmapArrayPines = "Bmp/PINES.BMP";
264272
public const string LessThanFullSizedPalette = "Bmp/pal8os2sp.bmp";
265273
public const string Pal8Offset = "Bmp/pal8offs.bmp";
266274
public const string OversizedPalette = "Bmp/pal8oversizepal.bmp";

0 commit comments

Comments
 (0)