Этап 3. Форма и замена bool.

This commit is contained in:
Nap 2022-10-30 15:40:58 +04:00
parent a678395c8b
commit 1429feb1a0

View File

@ -45,7 +45,7 @@ namespace Battleship
Bitmap bmp = new(_pictureWidth, _pictureWidth);
Graphics gr = Graphics.FromImage(bmp);
DrawBackground(gr);
DrawWarship(gr);
DrawBattleship(gr);
return bmp;
}
@ -111,7 +111,7 @@ namespace Battleship
g.DrawLine(pen, i * _placeSizeWidth + 3, 2, i * _placeSizeWidth + 3, (_pictureHeight / _placeSizeHeight) * _placeSizeHeight);
}
}
private void DrawWarship(Graphics gr)
private void DrawBattleship(Graphics gr)
{
int width = _pictureWidth / _placeSizeWidth;
int height = _pictureHeight / _placeSizeHeight;