Лабораторная работа №5 (1)
This commit is contained in:
parent
557d17ab8a
commit
24e042d02d
@ -33,7 +33,7 @@ public class DrawningAirPlane : DrawningPlane
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Pen pen = new(Color.Black);
|
Pen pen = new(Color.Black);
|
||||||
Brush additionalBrush = new SolidBrush(EntityPlane.BodyColor);
|
Brush additionalBrush = new SolidBrush(airPlane.AdditionalColor);
|
||||||
|
|
||||||
if (airPlane.Chassi)
|
if (airPlane.Chassi)
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,7 @@ public partial class FormPlaneConfig : Form
|
|||||||
Bitmap bmp = new(pictureBoxObject.Width, pictureBoxObject.Height);
|
Bitmap bmp = new(pictureBoxObject.Width, pictureBoxObject.Height);
|
||||||
Graphics gr = Graphics.FromImage(bmp);
|
Graphics gr = Graphics.FromImage(bmp);
|
||||||
_plane?.SetPictureSize(pictureBoxObject.Width, pictureBoxObject.Height);
|
_plane?.SetPictureSize(pictureBoxObject.Width, pictureBoxObject.Height);
|
||||||
_plane?.SetPosition(110, 75);
|
_plane?.SetPosition(80, 60);
|
||||||
_plane?.DrawTransport(gr);
|
_plane?.DrawTransport(gr);
|
||||||
pictureBoxObject.Image = bmp;
|
pictureBoxObject.Image = bmp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user