System.Drawing.Drawing2D.GraphicsPath myPath =
new System.Drawing.Drawing2D.GraphicsPath();
myPath.AddEllipse(0,0,this.Whidth,this.Height);
Region myRegion = new Region(myPath);
this.Region = myRegion;
С C# на C++
Это код проги на C#
Код:
Пожалуйста переведите этот код на C++
Код:
System::Drawing::Drawing2D::GraphicsPath^ myPath =
gcnew System::Drawing::Drawing2D::GraphicsPath();
myPath->AddEllipse(0,0,this->Width,this->Height);
System::Drawing::Region^ MyRegion = gcnew System::Drawing::Region(myPath);
this->Region = MyRegion;
gcnew System::Drawing::Drawing2D::GraphicsPath();
myPath->AddEllipse(0,0,this->Width,this->Height);
System::Drawing::Region^ MyRegion = gcnew System::Drawing::Region(myPath);
this->Region = MyRegion;