Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / December 2003

Tip: Looking for answers? Try searching our database.

Unespected behaviour of graphicsPath

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Crirus - 29 Dec 2003 08:33 GMT
Hi!

I just made a test on graphicsPath

I added 3 circles to a GraphicsPath and filled with one color into a panel
paint event..

What I noticed is that the overlapped part of 2 circles is not filled as it
is not inside the path...
How can I add multiple closed figures as circles to a GP and all regions
added up to be considered as part of the path and filled out?

Thanks
Crirus
Bob Powell [MVP] - 29 Dec 2003 16:43 GMT
When you create the GraphicsPath you can specify the fill-mode. The default
is Alternate and will produce a shape with holes where two shapes overlap.
Create the path with a Winding fill mode to get a path that is a union of
all the shapes in it.

Signature

Bob Powell [MVP]
C#, System.Drawing

The November edition of Well Formed is now available.
Learn how to create Shell Extensions in managed code.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

> Hi!
>
[quoted text clipped - 10 lines]
> Thanks
> Crirus
Crirus - 29 Dec 2003 16:52 GMT
Found that..may I hope this is only a fill behaviour and a region from this
path is union of the shapes?

> When you create the GraphicsPath you can specify the fill-mode. The default
> is Alternate and will produce a shape with holes where two shapes overlap.
[quoted text clipped - 29 lines]
> > Thanks
> > Crirus

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.