怎样 想画就画----在PictureBox上画点

医手 2008-12-29 05:25:31
我要在PictureBox上用点来画实时视频, 所以不能等到Paint事件才画....
有没什么好办法?
...全文
106 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
mawering 2008-12-29
  • 打赏
  • 举报
回复
4楼的方法应该可以
net5i 2008-12-29
  • 打赏
  • 举报
回复
需要画的时候:
if(this.pictureBox1.Image == null)
this.pictureBox1.Image = new Bitmap(this.pictureBox1.Width, this.pcitureBox1.Height);
Graphics g = Image.From(this.pictureBox1.Image);

然后用这个g来画即可
GTX280 2008-12-29
  • 打赏
  • 举报
回复
帮顶
kingcsx666 2008-12-29
  • 打赏
  • 举报
回复
只能帮顶
dayizhixiaotutu 2008-12-29
  • 打赏
  • 举报
回复
学习

111,131

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧