0
我是C++新手。我正在使用Visual Studio Professional 2010.我学会了绘制线条,但是这次我需要绘制填充的多边形。我画线的方式如下:如何使用C++绘制填充多边形?
private: System::Void Form1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) {
Graphics ^g = e->Graphics; //require for drawing
g->DrawArc(Pens::Black, i-the_size/2, j-the_size/2, the_size, the_size, 0, 90);
g->DrawArc(Pens::Black, i+the_size/2, j+the_size/2, the_size, the_size, 180, 90);}
如何使用类似于我迄今了解到的技术绘制填充的多边形?
请注意,C++和C++/CLI是不是把插入符的“图形”,然后按F1以找出它可以做同样的语言 – Zharf
。 –