Лаб. работа 1 готовая

This commit is contained in:
Alkin Ivan 2024-02-27 13:52:33 +04:00
parent 27cb2f471e
commit c75659a390
6 changed files with 2 additions and 9 deletions

View File

@ -98,8 +98,6 @@ public class DrawningAirBomber
{
return;
}
if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
return;
if (x + _drawningAirBomberWidth > _pictureWidth) _startPosX = _pictureWidth - _drawningAirBomberWidth;
else if (x < 0) _startPosX = 0;
else _startPosX = x;
@ -210,11 +208,6 @@ public class DrawningAirBomber
g.FillPolygon(brRed, BombNose2Point);
}
//Корпус
Brush brGray = new SolidBrush(Color.Gray);
g.FillRectangle(BodyBrush, _startPosX.Value + 20, _startPosY.Value + 55, 120, 18);

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB