![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi again Is it possible to join 2 GraphicsPath into a single one? I need a union of more pathes without the inner lines, i.e. if I have 2 ellipse that overlaps I'd like to have just the outlines of both (I hope I was clear )Thanks. |
#3
| |||
| |||
|
|
It depends if you're interested in the outline of the path or the fill area how useful this would be. |

#4
| |||
| |||
|
|
"Bob Powell [MVP]" <bob (AT) _spamkiller_bobpowell (DOT) net> ha scritto nel messaggio news:% It depends if you're interested in the outline of the path or the fill area how useful this would be. Yes, I would like only the border to be traced by a pen ![]() Ok, other question: I can join 2 path with Path1.AddPath(Path2, connect). When I do Path1.Dispose() this will dispose alse the Path2, right? I don't want to trace each path I add... Thanks again. |
#5
| |||
| |||
|
|
The connect will simply try to add the path to the figure in the end of the figure list. It doesn't do much in the way of intelligent merging of the data. so you won't be able to draw just the outline. Adding the path only adds the data. Path 2 will still exist and it's still your responsibility to dispose of the path when you're done with it. |
#6
| |||
| |||
|
|
"Bob Powell [MVP]" <bob (AT) _spamkiller_bobpowell (DOT) net> ha scritto nel messaggio The connect will simply try to add the path to the figure in the end of the figure list. It doesn't do much in the way of intelligent merging of the data. so you won't be able to draw just the outline. Adding the path only adds the data. Path 2 will still exist and it's still your responsibility to dispose of the path when you're done with it. Ah, ok. So if I do: Path1 = new GraphicsPath(); ... temp = new GraphicsPath(); Path1.AddPath(temp, connect); temp.Dispose(); This is correct. Right? |
#7
| |||
| |||
|
|
You cannot perform logical operations such as union, exclusion etc on paths. You can however perform these functions on regions. |

![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |