Лабораторная №2.
This commit is contained in:
parent
5b3f2c0ab1
commit
41f1398da6
@ -113,48 +113,27 @@ namespace DoubleDeckerBus.DrawningObjects
|
|||||||
|
|
||||||
Pen pen = new(Color.Black);
|
Pen pen = new(Color.Black);
|
||||||
|
|
||||||
//границы автобсуса
|
|
||||||
g.DrawRectangle(pen, _startPosX - 1, _startPosY + 11, 100, 30);
|
g.DrawRectangle(pen, _startPosX - 1, _startPosY + 11, 100, 30);
|
||||||
Brush brBodyColor = new SolidBrush(EntityBus.BodyColor);
|
Brush brBodyColor = new SolidBrush(EntityBus.BodyColor);
|
||||||
g.FillRectangle(brBodyColor, _startPosX, _startPosY + 10, 100, 30);
|
g.FillRectangle(brBodyColor, _startPosX, _startPosY + 10, 100, 30);
|
||||||
|
|
||||||
//Дверь
|
|
||||||
g.DrawRectangle(pen, _startPosX + 30, _startPosY + 20, 10, 20);
|
g.DrawRectangle(pen, _startPosX + 30, _startPosY + 20, 10, 20);
|
||||||
Brush brBlack = new SolidBrush(Color.Black);
|
Brush brBlack = new SolidBrush(Color.Black);
|
||||||
g.FillRectangle(brBlack, _startPosX + 30, _startPosY + 20, 10, 20);
|
g.FillRectangle(brBlack, _startPosX + 30, _startPosY + 20, 10, 20);
|
||||||
|
|
||||||
//Колеса
|
|
||||||
g.DrawEllipse(pen, _startPosX + 7, _startPosY + 35, 10, 10);
|
g.DrawEllipse(pen, _startPosX + 7, _startPosY + 35, 10, 10);
|
||||||
g.DrawEllipse(pen, _startPosX + 77, _startPosY + 35, 10, 10);
|
g.DrawEllipse(pen, _startPosX + 77, _startPosY + 35, 10, 10);
|
||||||
g.FillEllipse(brBlack, _startPosX + 7, _startPosY + 35, 10, 10);
|
g.FillEllipse(brBlack, _startPosX + 7, _startPosY + 35, 10, 10);
|
||||||
g.FillEllipse(brBlack, _startPosX + 77, _startPosY + 35, 10, 10);
|
g.FillEllipse(brBlack, _startPosX + 77, _startPosY + 35, 10, 10);
|
||||||
|
|
||||||
//окна
|
|
||||||
Brush brBlue = new SolidBrush(Color.Blue);
|
Brush brBlue = new SolidBrush(Color.Blue);
|
||||||
g.FillEllipse(brBlue, _startPosX + 10, _startPosY + 15, 10, 15);
|
g.FillEllipse(brBlue, _startPosX + 10, _startPosY + 15, 10, 15);
|
||||||
g.FillEllipse(brBlue, _startPosX + 50, _startPosY + 15, 10, 15);
|
g.FillEllipse(brBlue, _startPosX + 50, _startPosY + 15, 10, 15);
|
||||||
g.FillEllipse(brBlue, _startPosX + 70, _startPosY + 15, 10, 15);
|
g.FillEllipse(brBlue, _startPosX + 70, _startPosY + 15, 10, 15);
|
||||||
g.FillEllipse(brBlue, _startPosX + 90, _startPosY + 15, 10, 15);
|
g.FillEllipse(brBlue, _startPosX + 90, _startPosY + 15, 10, 15);
|
||||||
|
|
||||||
//g.DrawRectangle(pen, _startPosX - 1, _startPosY + 11, 100, 30);
|
|
||||||
//Brush brBodyColor = new SolidBrush(EntityBus.BodyColor);
|
|
||||||
//g.FillRectangle(brBodyColor, _startPosX, _startPosY + 10, 100, 30);
|
|
||||||
|
|
||||||
//g.DrawRectangle(pen, _startPosX + 30, _startPosY + 20, 10, 20);
|
|
||||||
//Brush brBlack = new SolidBrush(Color.Black);
|
|
||||||
//g.FillRectangle(brBlack, _startPosX + 30, _startPosY + 20, 10, 20);
|
|
||||||
|
|
||||||
//g.DrawEllipse(pen, _startPosX + 7, _startPosY + 35, 10, 10);
|
|
||||||
//g.DrawEllipse(pen, _startPosX + 77, _startPosY + 35, 10, 10);
|
|
||||||
//g.FillEllipse(brBlack, _startPosX + 7, _startPosY + 35, 10, 10);
|
|
||||||
//g.FillEllipse(brBlack, _startPosX + 77, _startPosY + 35, 10, 10);
|
|
||||||
|
|
||||||
//Brush brBlue = new SolidBrush(Color.Blue);
|
|
||||||
//g.FillEllipse(brBlue, _startPosX + 10, _startPosY + 15, 10, 15);
|
|
||||||
//g.FillEllipse(brBlue, _startPosX + 50, _startPosY + 15, 10, 15);
|
|
||||||
//g.FillEllipse(brBlue, _startPosX + 70, _startPosY + 15, 10, 15);
|
|
||||||
//g.FillEllipse(brBlue, _startPosX + 90, _startPosY + 15, 10, 15);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,6 @@ namespace DoubleDeckerBus.DrawningObjects
|
|||||||
g.DrawRectangle(pen, _startPosX + 30, _startPosY + 20, 10, 20);
|
g.DrawRectangle(pen, _startPosX + 30, _startPosY + 20, 10, 20);
|
||||||
g.FillRectangle(brBlack, _startPosX + 30, _startPosY + 20, 10, 20);
|
g.FillRectangle(brBlack, _startPosX + 30, _startPosY + 20, 10, 20);
|
||||||
|
|
||||||
|
|
||||||
g.FillEllipse(brBlue, _startPosX + 10, _startPosY + 15, 10, 15);
|
g.FillEllipse(brBlue, _startPosX + 10, _startPosY + 15, 10, 15);
|
||||||
g.FillEllipse(brBlue, _startPosX + 50, _startPosY + 15, 10, 15);
|
g.FillEllipse(brBlue, _startPosX + 50, _startPosY + 15, 10, 15);
|
||||||
g.FillEllipse(brBlue, _startPosX + 70, _startPosY + 15, 10, 15);
|
g.FillEllipse(brBlue, _startPosX + 70, _startPosY + 15, 10, 15);
|
||||||
|
Loading…
Reference in New Issue
Block a user