Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-711

BitmapSerializer needs to be removed as not all formats can be consistently round tripped

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.0
    • 1.8
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            sridhar Sridhar Nanjundeswaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: