Polygon Question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Polygon Question

  1. #1
    Join Date
    Feb 2008
    Posts
    63

    Question Polygon Question

    When drawing a polygon the inside area can be filled with the FillPolygon statement. Is there a way to fill the outside area of a polygon in .NET with one simple statement like the FillPolygon?

    Thanks for reading my question and any answer you may give.

  2. #2
    Join Date
    Apr 2008
    Posts
    19
    Maybe this is too simple.

    Can you just reverse the colors? me.BackColor and FillPolygon color

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Take a look at the FillRegion method of the System.Drawing.Graphics class.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  4. #4
    Join Date
    Feb 2008
    Posts
    63
    jpj162 thanks for your reply. I wish that it was that easy to do, but what I'm going for this just won't work.

    Phil, I'll see what I can do with the FillRegion and see what that does for my application.

    Thanks to both of you for your replies. This was just a question that crossed my mind so I just thought that I would ask.

Similar Threads

  1. Display one record at a time!
    By ASP learner in forum ASP.NET
    Replies: 5
    Last Post: 10-08-2002, 07:17 PM
  2. Question on asp.net user/server controls
    By Andy Stephens in forum ASP.NET
    Replies: 1
    Last Post: 09-06-2002, 05:29 PM
  3. question on best programming option
    By James in forum .NET
    Replies: 2
    Last Post: 03-28-2002, 07:14 AM
  4. VB,STORED PROC, COM, DTC QUESTION?
    By melvin ng in forum VB Classic
    Replies: 1
    Last Post: 11-10-2000, 03:46 AM
  5. Performance question
    By John in forum VB Classic
    Replies: 2
    Last Post: 04-05-2000, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center