Этап 3. Форма и замена bool.
This commit is contained in:
parent
a678395c8b
commit
1429feb1a0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user