-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 1.8
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Roundtripping of Bitmap does not always work. It is dependent on PixelFormat, save type (Bmp vs Tiff) and platform.
With the attached tests (CSharp355New), ignoring the unsupported formats:
The following fail on Windows with save type as Bmp
- TestBitmapFormat16bppRgb555
- TestBitmapFormat16bppRgb565
- TestBitmapFormat48bppRgb
On Mono on 2.10.1 on OS X with save type as Bmp
The above 3 pass but the following had to be skipped since they were unsupported
- TestBitmapFormat16bppArgb1555
- TestBitmapFormat48bppRgb
- TestBitmapFormat64bppArgb
- TestBitmapFormat64bppPArgb
If you change the save type to be ImageFormat.Tiff on line 40 of the attached test and line 145 of BitmapSerializer all tests (except the skipped one) passed on Windows.