[Mono-bugs] [Bug 78336][Nor] Changed - Color Matrixes do not work right in OSX X11

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 11 15:58:53 EDT 2006


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 don at edvalson.net.

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

--- shadow/78336	2006-05-10 14:10:27.000000000 -0400
+++ shadow/78336.tmp.32278	2006-05-11 15:58:53.000000000 -0400
@@ -28,6 +28,34 @@
 test case with screenshots
 
 
 ------- Additional Comments From peter at novonyx.com  2006-05-10 14:10 -------
 Probably an endianness problem in libgdiplus image attributes 
 handling.
+
+------- Additional Comments From don at edvalson.net  2006-05-11 15:58 -------
+I have further information on this bug. It turns out that the first 
+two rows of the matrix are swapped and the second two rows of the 
+matrix are swapped. IE: Row 0 is swapped with row 1, Row 2 is 
+swapped with Row 3.
+
+Thus, if the following matrix would work on win32:
+
+// turn red into blue and blue into red
+float[][] matrixItems ={ 
+    new float[] {0, 0, 1, 0, 0}, // red input
+    new float[] {0, 1, 0, 0, 0}, // green input
+    new float[] {1, 0, 0, 0, 0}, // blue input
+    new float[] {0, 0, 0, 0, 0}, // alpha input
+    new float[] {0, 0, 0, 1, 0}};  
+
+To use it in OSX X11, the following matrix would be required:
+
+// turn red into blue and blue into red
+float[][] matrixItems ={ 
+    new float[] {0, 1, 0, 0, 0}, // GREEN but should be red input
+    new float[] {0, 0, 1, 0, 0}, // RED but should be green input
+    new float[] {0, 0, 0, 0, 0}, // ALPHA but should be blue input
+    new float[] {1, 0, 0, 0, 0}, // BLUE but should be alpha input
+    new float[] {0, 0, 0, 1, 0}};  
+
+


More information about the mono-bugs mailing list