[Mono-bugs] [Bug 58885][Nor] New - Graphics class is drawing with wrong colors
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 23 May 2004 20:22:32 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by domo@domnanovits.at.
http://bugzilla.ximian.com/show_bug.cgi?id=58885
--- shadow/58885 2004-05-23 20:22:32.000000000 -0400
+++ shadow/58885.tmp.27229 2004-05-23 20:22:32.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 58885
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: Mac OS X 10.3.3
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: domo@domnanovits.at
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Graphics class is drawing with wrong colors
+
+Description of Problem:
+The colors get mixed up on Mac OS X when using the drawing functions of the System.Drawing
+namespace. All drawing functions of the Graphics class almost never hit the correct color. The
+only color which seems to work is blue. I guess there is a problem with little or big endians on
+the PPC platform.
+
+Here a litte code example:
+class App
+{
+ static void Main()
+ {
+ Bitmap bmp = new Bitmap(42, 42);
+ Graphics g = Graphics.FromImage(bmp);
+ g.Clear ( Color.Green );
+
+ FileStream file = new FileStream ( "rect.png", FileMode.Create );
+ bmp.Save ( file, ImageFormat.Png );
+ file.Close();
+ }
+}
+
+Actual Results:
+A transparent image with size 42x42 in file "rect.png".
+
+Expected Results:
+A green image in "rect.png"
+
+Additional Information:
+Used libraries:
+mono: cvs snapshot 05/23/2004
+libgdiplus: cvs snapshot 05/19/2004
+cairo: cvs snapshot 05/19/2004
+libpng: 1.2.5-4