[Mono-bugs] [Bug 325502] GraphicsPath.IsVisible does not hit test shapes properly.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Oct 26 13:50:19 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=325502#c1
--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2007-10-26 11:50:19 MST ---
Strangely it works for some shapes (like rectangles) but not for ellipses.
Smaller test case:
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
class Program {
static void Main ()
{
using (GraphicsPath path = new GraphicsPath ()) {
// path.AddEllipse (new Rectangle (20, 20, 50, 50));
path.AddRectangle (new Rectangle (20, 20, 50, 50));
for (int y=0; y < 80; y++) {
for (int x=0; x < 80; x++) {
Console.Write (path.IsVisible (x, y) ?
"X" : " ");
}
Console.WriteLine (".");
}
}
}
}
--
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