Follow this article to draw pentagon using C#. It has the details to set the IDE, a list of steps, and a sample code for drawing of a pentagon shape using C#....Imaging Product Family Aspose.BarCode...and customize the output PNG image file as per your requirement...