【问题标题】:How do I draw lines inside a Visual C++ PictureBox如何在 Visual C++ PictureBox 内画线
【发布时间】:2013-08-14 05:16:08
【问题描述】:

我想在 Visual C++ Forms PictureBox 中绘制黑线以绘制一些信息。我该怎么做呢?可以使用 PictureBox 来执行此操作还是应该使用其他东西?

【问题讨论】:

    标签: windows winforms visual-studio visual-c++ c++-cli


    【解决方案1】:

    要在任何 WinForms 控件上绘图,请处理 Paint 事件,获取 Graphics 对象,然后随意调用 DrawLineother methods

    MSDN 上有一个很好的例子。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-03
      • 2011-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-23
      • 1970-01-01
      • 2012-08-16
      相关资源
      最近更新 更多