Hi all,

this is really not stricly mono related but as I can't find any relevant
informations on the net, I'll try here.

I need to draw complex paths using System.Drawing and find the
intersection[s] between that path and an arbitrary point in 2D Space.

See attached picture for a better understanding of the problem.

The only algorythm I can come up with, involves doing linear
interpolation by hand of the imaginary segment and invoke
isOutlineVisible() on the GraphicsPath for each intermediate point...

But I feel there must be a much more elegant solution :

- Is there a way of intersecting multiple GraphicsPath ?
- Should I render in an offline buffer using a special compositing mode
and lookup afterward ?

Any hints would be greatly appreciated.

BTW, thank you very, very much to everyone involved in mono.
Developing with gtk# and the .net plateform is a real pleasure.
One year ago, if someone told me I would be able to develop using gtk
and render my drawing areas using System.Drawing, I really would have
laughed loud ;)
Mono is a wonderful integration plateform, I love it.

Thank you,
--
CÃdric

<<inline: example.gif>>

Reply via email to