[Mono-list] System.Drawing.Drawing2D.GraphicsPath
Jon Watte
hplus@b500.com
Mon, 19 Jul 2004 02:59:07 -0700
> - Should I render in an offline buffer using a special=20
> compositing mode and lookup afterward ?
The good-old hit-test function used since the '80s is to=20
allocate a 1-pixel bitmap to render into, and make sure=20
that that pixel is the point you're interested in=20
intersecting with (using 2D offset/changing the origin).=20
Clear it to white, render your thing in black, and then=20
see if the pixel changed color.
If you want a mathematical intersection, this won't=20
help, of course.
Cheers,
/ h+