polygon - creating a soccer ball with 2d drawing c# -


i have tried making inside ball , ball don't know how fill ball graphipath created

private void soccerball_paint(object sender, painteventargs e) {     graphics soccerballg = e.graphics;     graphicspath hexagon = new graphicspath();     pen pen = new pen(color.red, 2);     solidbrush brush = new solidbrush(color.black);     point[] points = new point[]{         new point(100,100),         new point(108,100),         new point(114,106),         new point(108,112),         new point(100,112),         new point(94,106)     };     hexagon.addpolygon(points);     rectangle rect = new rectangle(100, 100, 250, 250);     hexagon.addellipse(rect);      soccerballg.drawpath(pen, hexagon);             soccerballg.fillrectangle(interior, rect); } 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -