SHARE
TWEET

Untitled

a guest Jun 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var graphicsPath = new GraphicsPath();
  2. var points = new PointF[6];
  3. points[0] = new PointF(tile.Points[0].X  -4, tile.Points[0].Y - 4);
  4. points[1] = new PointF(tile.Points[1].X - 4, tile.Points[1].Y - 4);
  5. points[2] = new PointF(tile.Points[2].X + 4, tile.Points[2].Y + 4);
  6. points[3] = new PointF(tile.Points[3].X - 4, tile.Points[3].Y - 4);
  7. points[4] = new PointF(tile.Points[4].X + 4, tile.Points[4].Y + 4);
  8. points[5] = new PointF(tile.Points[5].X + 4, tile.Points[5].Y + 4);
  9.  
  10. graphicsPath.AddPolygon(points);
  11.  
  12. using (var pen = new Pen(Color.FromArgb(60, 60, 60), 3F))
  13.     graphics.DrawPath(pen, graphicsPath);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top