19.
Point k=Point(100+(x+0.001)*100,100-(y+0.001)*100);
20.
array
^qizil={l,k};
21.
Figura->DrawPolygon(Qalam,qizil);
22.
x+=0.001; }while (x<=4);}
23.
private: System::Void
24.
listBox1_SelectedIndexChanged(System::Object^ sender,
25.
System::EventArgs^ e) {
26.
SolidBrush^ blueBrush = gcnew SolidBrush(Color::Blue );
27.
// point o'zgarmaslarini yaratish.
28.
Point point1 = Point(50,50); Point point2 = Point(100,25);
29.
Point point3 = Point(200,5); Point point4 = Point(250,50);
30.
Point point5= Point(300,100); Point point6 = Point(350,200);
31.
Point point7 = Point(250,250); array
^ curvePoints =
32.
{point1,point2,point3,point4,point5,point6,point7};
33.
//Figurali obyektni hosil qilish
34.
Graphics^ Figura = this->CreateGraphics();
35.
//Figurali shakilni chizish uchun qalamni hosil qilish
36.
Pen^ Qalam = gcnew Pen(Color::Red);
37.
//Figurali shaklni bo'yash uchun mo'yqalamni hosil qilish
38.
Brush^ Mqalam = gcnew SolidBrush(Color::Red);
Do'stlaringiz bilan baham: |