[Mono-list] System.Drawing.Drawing2D.GraphicsPath

Cedric Marcone marcone@mdeo.fr
Mon, 19 Jul 2004 11:04:45 +0200


--=-wAcPQN27s6VpX5H/DvYQ
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

--=-wAcPQN27s6VpX5H/DvYQ
Content-Description: 
Content-Type: image/gif
Content-Disposition: inline; filename=example.gif
Content-Transfer-Encoding: base64

R0lGODdh2AChAOcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4O
Dg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ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