координаты
This commit is contained in:
@@ -37,7 +37,7 @@ public class DrawningBoat
|
||||
/// <summary>
|
||||
/// Ширина прорисовки автомобиля
|
||||
/// </summary>
|
||||
private readonly int _drawingCatamaranWidth = 110;
|
||||
private readonly int _drawingCatamaranWidth = 100;
|
||||
|
||||
/// <summary>
|
||||
/// Высота прорисовки автомобиля
|
||||
@@ -177,6 +177,21 @@ public class DrawningBoat
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Метод отрисовки поплавка
|
||||
/// </summary>
|
||||
/// <param name="y0"></param>
|
||||
/// <param name="additionalBrush"></param>
|
||||
/// <param name="g"></param>
|
||||
private void DrawFloater(int y0, Brush additionalBrush, Graphics g)
|
||||
{
|
||||
Point[] Floater = new Point[]
|
||||
{
|
||||
new Point(_startPosX.Value + 10, _startPosY.Value + y0 + 6),
|
||||
new Point(_startPosX.Value + 90, _startPosY.Value + y0 + 6),
|
||||
new Point(_startPosX.Value + 110, _startPosY.Value + y0 + 3),
|
||||
new Point(_startPosX.Value + 90, _startPosY.Value + y0),
|
||||
new Point(_startPosX.Value + 10, _startPosY.Value + y0),
|
||||
|
||||
/// <summary>
|
||||
/// Прорисовка объекта
|
||||
@@ -198,18 +213,18 @@ public class DrawningBoat
|
||||
// границы катамарана
|
||||
Point[] BoatBorders = new Point[]
|
||||
{
|
||||
new Point(_startPosX.Value + 10, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value + 80, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value + 107, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 80, _startPosY.Value + 45),
|
||||
new Point(_startPosX.Value + 10, _startPosY.Value + 45),
|
||||
new Point(_startPosX.Value, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value + 70, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value + 97, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 70, _startPosY.Value + 45),
|
||||
new Point(_startPosX.Value, _startPosY.Value + 45),
|
||||
|
||||
};
|
||||
g.DrawPolygon(pen, BoatBorders);
|
||||
g.FillPolygon(BodyBrush, BoatBorders);
|
||||
|
||||
g.DrawEllipse(pen, _startPosX.Value + 17, _startPosY.Value + 14, 65, 27);
|
||||
g.FillEllipse(Brushes.White, _startPosX.Value + 17, _startPosY.Value + 14, 65, 27);
|
||||
g.DrawEllipse(pen, _startPosX.Value + 7, _startPosY.Value + 14, 55, 27);
|
||||
g.FillEllipse(Brushes.White, _startPosX.Value + 7, _startPosY.Value + 14, 55, 27);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user