need help for drawing obstacle in mapcontrol, map control it is bouh2 - https://cadernis.com/d/585-dofus-map-control-un-contrôle-pour-afficher-une-map
public void DrawObstacle(Graphics g, Color borderColor, Color fillingColor)
{
using (GraphicsPath path = new GraphicsPath())
{
path.AddLines(new PointF[]
{
new PointF(Puntos[3].X, Puntos[3].Y - 10),
new PointF(Puntos[0].X, Puntos[0].Y - 10),
new PointF(Puntos[1].X, Puntos[1].Y - 10),
new PointF(Puntos[2].X, Puntos[2].Y - 10),
new PointF(Puntos[3].X, Puntos[3].Y - 10)
});
path.AddLines(new PointF[]
{
new PointF(Puntos[3].X, Puntos[3].Y - 10),
new PointF(Puntos[2].X, Puntos[2].Y - 10),
Puntos[2],
Puntos[3],
new PointF(Puntos[3].X, Puntos[3].Y - 10),
});
path.AddLines(new PointF[]
{
new PointF(Puntos[2].X, Puntos[2].Y - 10),
new PointF(Puntos[1].X, Puntos[1].Y - 10),
new PointF(Puntos[2].X, Puntos[2].Y - 10),
});
using (SolidBrush brush = new SolidBrush(fillingColor))
g.FillPath(brush, path);
using (Pen pen = new Pen(borderColor))
g.DrawPath(pen, path);
}
}

thanks ^^