[Mono-bugs] [Bug 457426] New: GraphicsPath.FillPath creates an outline over polygons

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 8 17:08:31 EST 2008


           Summary: GraphicsPath.FillPath creates an outline over polygons
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: scott.ellington at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=258739)
 --> (https://bugzilla.novell.com/attachment.cgi?id=258739)
mono output with outline

GraphicsPath.FillPath is supposed to only fill polygons, but in mono it also
create an outline.  It can be seen when your fill color is partially
transparent.  Sample code:

Bitmap b = new Bitmap(400, 400);

using (Graphics g = Graphics.FromImage(b))

        Rectangle r = new Rectangle(50, 50, 300, 100);

        GraphicsPath gp = new GraphicsPath();

        // outline (shouldn't)
        g.FillPath(new SolidBrush(Color.FromArgb(50, 255, 0, 0)), gp);

        r.Y = 200;

        // no outline
        g.FillRectangle(new SolidBrush(Color.FromArgb(50, 255, 0, 0)), r);


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list