[Mono-bugs] [Bug 81828][Nor] New - Alpha values in TextureBrush'es are incorrectly used

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 7 12:00:01 EDT 2007


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 doc.formatique at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81828

--- shadow/81828	2007-06-07 12:00:01.000000000 -0400
+++ shadow/81828.tmp.27442	2007-06-07 12:00:01.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 81828
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: libgdiplus
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: doc.formatique at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Alpha values in TextureBrush'es are incorrectly used
+
+Description of Problem:
+
+Alpha values in TextureBrush'es are incorrectly used.
+
+Steps to reproduce the problem:
+
+1. Draw a solid background.
+2. Draw a white rectangle with alpha:
+            g.FillRectangle(new SolidBrush(Color.FromArgb(128, 255, 255,
+255)), ...)
+3. Draw another rectangle with a TextureBrush generated from a bitmap
+identically filled:
+
+            Bitmap bm_for_brush = new Bitmap(1, 1);
+            bm_for_brush.SetPixel(0, 0, Color.FromArgb(128, 255, 255, 255));
+            TextureBrush tb = new TextureBrush(bm_for_brush);
+            g.FillRectangle(tb, ...);
+
+
+Actual Results:
+
+The colors are different.
+
+Expected Results:
+
+The colors should be the same.
+
+Additional Information:
+
+Isn't this a missing-alpha-pre-multiply bug (like #80323 and #79297)?
+Tracing the program, _cairo_pixman_composite_src_8888x8888mmx receives
+*src=0x80ffffff while the equivalent pycairo program passes 0x80808080


More information about the mono-bugs mailing list