扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:刘涛编译 来源:天极网 2007年11月16日
关键字:
public: void DrawPolygon(Pen *pen, Point points[]); public: void DrawPolygon(Pen *pen, PointF points[]); |
private: System::Void Form1_Paint(System::Object * sender, System::Windows::Forms::PaintEventArgs * e) { Point Pt[] = { Point(20, 50), Point(180, 50), Point(180, 20), Point(230, 70), Point(180, 120), Point(180, 90), Point(20, 90) }; Pen *penCurrent = new Pen(Color::Red); e->Graphics->DrawPolygon(penCurrent, Pt); } |
![]() 图八、多边形效果图 |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。