[CSHARP-389] TestBitmap fails using Mono on Mac OS X Created: 09/Feb/12  Updated: 20/Mar/14  Resolved: 25/Mar/13

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.3.1
Fix Version/s: 2.0

Type: Task Priority: Minor - P4
Reporter: Robert Stam Assignee: Sridhar Nanjundeswaran
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS X 10.7.2
MonoDevelop 2.8.6.4
Mono 2.10.8



 Description   

TestBitmap (in CSharp355Tests.cs) fails using Mono on Mac OS X. It passes using Mono on Windows. And of course it passes using .NET Framework.

Does Mono have a bug in bitmap.Save(stream, ImageFormat.Bmp) or new Bitmap(stream)? Is there a workaround? Is there a better/more correct way to serialize a Bitmap?



 Comments   
Comment by auto [ 26/Mar/13 ]

Author:

{u'date': u'2013-03-26T01:21:01Z', u'name': u'Sridhar Nanjundeswaran', u'email': u'sridhar@10gen.com'}

Message: Unit test failure fix for CSHARP-389
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5f2f85805f93fdd5e81e1d6cb49f3b053e419f98

Comment by auto [ 25/Mar/13 ]

Author:

{u'date': u'2013-03-25T23:49:29Z', u'name': u'Sridhar Nanjundeswaran', u'email': u'sridhar@10gen.com'}

Message: CSHARP-389 - Fix unit test break. The 32 bit format does not seem to be supported on our test env (Ubuntu) though supported on Windows on OS X
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/cf221aebed546cf5148497977d9c33c3c0df661c

Comment by Sridhar Nanjundeswaran [ 25/Mar/13 ]

Bitmap created with default PixelFormat does not round trip in Mono. Still skipping this test on Mono but added example with default format that shows round tripping in Mono.

Comment by auto [ 25/Mar/13 ]

Author:

{u'date': u'2013-03-25T22:12:33Z', u'name': u'Sridhar Nanjundeswaran', u'email': u'sridhar@10gen.com'}

Message: CSHARP-389 - More specific test showing an example of a Bitmap that can be roundtripped in Mono.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5f1e09955a7a6b5b60ff0293903ffd49f255dd4e

Comment by Sridhar Nanjundeswaran [ 13/Mar/12 ]

For now the test is skipped in Mono. Will revist post 1.4

Generated at Wed Feb 07 21:36:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.