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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • 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.

        1. CSharp355New.cs
          16 kB
          Sridhar Nanjundeswaran

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

              Created:
              Updated:
              Resolved: