BaseLab1 all

This commit is contained in:
Максим Егоров 2023-01-28 21:29:14 +04:00
parent 240993cfe4
commit a95a01c333

View File

@ -117,8 +117,6 @@ namespace Sailboat
return;
}
Pen pen = new(Color.Black);
//TODO: нарисовать лодку
//g.DrawLine(pen, new PointF(__startPosX, _startPosY), new PointF(__startPosX + 100, _startPosY));
//Лодка
Brush br = new SolidBrush(Sailboat.BodyColor);
PointF point1 = new PointF(_startPosX + 150, _startPosY);
@ -136,13 +134,7 @@ namespace Sailboat
};
g.FillPolygon(br, carcass);
g.DrawPolygon(pen, carcass);
/*
g.DrawLine(pen, new PointF(_startPosX, _startPosY), new PointF(_startPosX + 150, _startPosY));
g.DrawLine(pen, new PointF(_startPosX + 150, _startPosY), new PointF(_startPosX + 225, _startPosY + 33));
g.DrawLine(pen, new PointF(_startPosX + 225, _startPosY + 33), new PointF(_startPosX + 150, _startPosY + 66));
g.DrawLine(pen, new PointF(_startPosX + 150, _startPosY + 66), new PointF(_startPosX, _startPosY + 66));
g.DrawLine(pen, new PointF(_startPosX, _startPosY + 66), new PointF(_startPosX, _startPosY));
*/
//Каюта
g.DrawArc(pen, new RectangleF(_startPosX + 10, _startPosY + 10, 40, 45), 90, 180);
g.DrawLine(pen, new PointF(_startPosX + 25, _startPosY + 10), new PointF(_startPosX + 138, _startPosY + 10));