Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:22:14+00:00 2026-06-12T12:22:14+00:00

Within the System.Drawing.Graphics namespace you can draw a polygon like this: using (Graphics g

  • 0

Within the System.Drawing.Graphics namespace you can draw a polygon like this:

using (Graphics g = Graphics.FromImage(bmp))
{
  g.DrawPolygon(Pens.Black, myArray);
}

and there is a method to create a filled polygon g.FillPolygon().

How can you create a polygon (so it has a border) and then fill it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:22:15+00:00Added an answer on June 12, 2026 at 12:22 pm

    Just draw the filled polygon then draw the perimeter so it looks like it has a border:

    using (Graphics g = Graphics.FromImage(bmp))
    {
        g.FillPolygon(fillBrush, myArray);
        g.DrawPolygon(borderPen, myArray);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my test-system there is no problem searching for items within specific sites, using
How can I set the System.Windows.Controls.DatePicker control as used within a Silverlight project to
I am creating a textBox within a repeater like this ( so there are
I am making a desktop app with MonoMac that relies on system.drawing. This works
I'm building a login system within my app that will be called several times.
Is there any sort of out of the box system within SharePoint (i.e. MOSS
We are refactoring a weird system where within its backend, values that should be
I’m looking for a way to deploy a system DLL within my ActiveX CAB
Is it possible to change values of settings within a ClientSettingsSection (System.Configuration.ClientSettingsSection) in a
I am creating a Python script within which I am executing UNIX system commands.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.