[Mono-bugs] [Bug 81266][Nor] New - GdipSetPenColor() does not change the pen color

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 30 00:11:15 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 choe.hwanjin at gmail.com.

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

--- shadow/81266	2007-03-29 23:11:15.000000000 -0500
+++ shadow/81266.tmp.18522	2007-03-29 23:11:15.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 81266
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: libgdiplus
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: choe.hwanjin at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GdipSetPenColor() does not change the pen color
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+GdipSetPenColor() doesn't change the pen color.
+
+When I write some codes like below:
+
+GdipCreatePen1(0xff0000ff, 1, UnitPixel, &pen);
+GdipSetPenColor(pen, 0xffff0000);
+
+this does not change the pen color.
+
+Steps to reproduce the problem:
+1. create pen.
+2. change the pen color.
+3. 
+
+Actual Results:
+The pen color should be changed.
+
+Expected Results:
+No changes.
+
+
+How often does this happen? 
+Always.
+
+Additional Information:
+
+The reason is that the GpPen does not use GpPen::color when it draws a line
+or something. If the pen has SolidFill brush, it should change the color of
+the SolidFill brush by calling GdipSetSolidFillColor() on GpPen::brush.
+
+I made a patch for this problem. I will attach it.


More information about the mono-bugs mailing list