Исправление рисунка.

This commit is contained in:
1yuee 2022-09-13 16:48:50 +04:00
parent 6e9d2caf06
commit fd00315caa

View File

@ -103,51 +103,75 @@ namespace AirFighter
Pen pen = new(Color.Black);
Brush brWhite = new SolidBrush(Plane.BodyColor);
g.FillEllipse(brWhite, _startPosX + 3, _startPosY + 37, 120, 23);
g.DrawEllipse(pen,_startPosX + 3, _startPosY + 37, 120, 23);
g.FillRectangle(brWhite, _startPosX + 20, _startPosY + 45, 80, 14);
g.DrawRectangle(pen,_startPosX + 20, _startPosY + 45, 80, 14);
GraphicsPath pathBody = new GraphicsPath();
Point point1B = new Point((int)(_startPosX + 110), (int)(_startPosY + 36));
Point point2B = new Point(point1B.X + 14, point1B.Y + 12);
Point point3B = new Point(point1B.X, point2B.Y + 12);
Point point4B = new Point(point1B.X, point1B.Y);
Point[] pointsBody = new Point[] { point1B, point2B, point3B, point4B };
pathBody.AddLines(pointsBody);
g.DrawPath(pen, pathBody);
g.FillPath(brWhite, pathBody);
g.DrawLine(pen, point1B.X, (point3B.Y + point1B.Y) / 2, point2B.X + 6, point2B.Y);
GraphicsPath pathWings = new GraphicsPath();
//Wings
Point point1W = new Point((int)(_startPosX + 10), (int)(_startPosY)+ 4);
Point point2W = new Point(point1W.X + 35, point1W.Y + 40);
Point point3W = new Point(point1W.X,point1W.Y + 40);
Point point4W = new Point(point1W.X, point1W.Y);
Point[] pointsWings = new Point[] {point1W , point2W , point3W , point4W};
pathWings.AddLines(pointsWings);
g.DrawPath(pen,pathWings);
g.FillPath(brWhite, pathWings);
GraphicsPath pathWing1 = new GraphicsPath();
Point point1B = new Point((int)(_startPosX + 50), (int)(_startPosY + 45));
Point point2B = new Point(point1B.X, point1B.Y - 40);
Point point3B = new Point(point2B.X + 6, point2B.Y);
Point point4B = new Point(point3B.X + 27, point1B.Y);
Point[] pointsWings = new Point[] { point1B, point2B, point3B, point4B };
pathWing1.AddLines(pointsWings);
g.DrawPath(pen, pathWing1);
g.FillPath(brWhite, pathWing1);
GraphicsPath pathWing2 = new GraphicsPath();
Point point1B2 = new Point((int)(_startPosX + 50), (int)(_startPosY + 60));
Point point2B2 = new Point(point1B2.X, point1B2.Y + 40);
Point point3B2 = new Point(point2B2.X + 6, point2B2.Y);
Point point4B2 = new Point(point3B2.X + 27, point1B2.Y);
Point[] pointsWings2 = new Point[] { point1B2, point2B2, point3B2, point4B2 };
pathWing2.AddLines(pointsWings2);
g.DrawPath(pen, pathWing2);
g.FillPath(brWhite, pathWing2);
//BackWings
GraphicsPath pathBackWing1 = new GraphicsPath();
Point point1W = new Point((int)(_startPosX + 85), (int)(_startPosY + 45));
Point point2W = new Point(point1W.X, point1W.Y - 7);
Point point3W = new Point(point2W.X + 15, point2W.Y - 16);
Point point4W = new Point(point3W.X, point1W.Y);
Point[] pointsBackWing1 = new Point[] { point1W, point2W, point3W, point4W };
pathBackWing1.AddLines(pointsBackWing1);
g.DrawPath(pen, pathBackWing1);
g.FillPath(brWhite, pathBackWing1);
GraphicsPath pathBackWing2 = new GraphicsPath();
Point point1W2 = new Point((int)(_startPosX + 85), (int)(_startPosY + 60));
Point point2W2 = new Point(point1W2.X, point1W2.Y + 7);
Point point3W2 = new Point(point2W2.X + 15, point2W2.Y +16);
Point point4W2 = new Point(point3W2.X, point1W2.Y);
Point[] pointsBackWing2 = new Point[] { point1W2, point2W2, point3W2, point4W2 };
pathBackWing2.AddLines(pointsBackWing2);
g.DrawPath(pen,pathBackWing2);
g.FillPath(brWhite,pathBackWing2);
Brush brBlack = new SolidBrush(Color.Black);
g.FillEllipse(brBlack,point1W.X,point3W.Y,25,10);
g.FillEllipse(brBlack, (int)(_startPosX + 40), (int)(_startPosY + 45),45,8);
//Wheels
Point point1WH = new Point((int)(_startPosX + 40), (int)(_startPosY + 60));
Point point2WH = new Point(point1WH.X, point1WH.Y + 5);
g.DrawLine(pen, point1WH, point2WH);
Point point3WH = new Point((int)(_startPosX + 95),point1WH.Y - 2);
Point point4WH = new Point(point3WH.X,point2WH.Y);
g.DrawLine(pen, point3WH, point4WH);
g.FillEllipse(brBlack, point1WH.X - 5, point2WH.Y,5,5);
g.FillEllipse(brBlack, point1WH.X, point2WH.Y, 5, 5);
g.FillEllipse(brBlack, point3WH.X - 2, point4WH.Y , 5, 5);
//Nose
GraphicsPath pathBoseBody = new GraphicsPath();
Point point1N = new Point((int)(_startPosX + 20), (int)(_startPosY + 45));
Point point2N = new Point(point1N.X - 15 ,point1N.Y + 7);
Point point3N = new Point(point1N.X, point1N.Y + 15);
Point[] pointsBoseBody = new Point[] { point1N,point2N,point3N};
pathBoseBody.AddLines(pointsBoseBody);
g.FillPath(brBlack,pathBoseBody);