作者hamsters (hamster)
看板Visual_Basic
标题Re: [.NET] graphics的问题
时间Sun Oct 26 19:18:36 2008
CreateGraphics 方法建立的 Graphics 可以绘制的范围是呼叫 CreateGraphics 当时
Control 的大小,所以方法一会被裁切,不然就是每次 Control 大小改变後就重新使用
CreateGraphics 取得新的 Graphics 也是可以。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.160.71.232
1F:→ MOONRAKER:推,解开我的疑惑 :] 10/26 20:27
2F:推 applerev:感谢 但是有点搞不懂"Control的大小"指的是啥 10/26 21:24
3F:→ hamsters:就是可绘制范围为: 10/26 23:04
4F:→ hamsters:{x=0,y=0,width=Control.Width,height=Control.Height} 10/26 23:04
5F:推 applerev:那麽这宽和高的值是怎麽决定的呢? 10/27 01:31
6F:→ hamsters:就是呼叫 CreateGraphics 当时 Control 的大小 10/27 10:36
7F:推 saintber:根据最近修改的经验,Form的Resize似乎发生在参数载入 03/15 22:04
8F:→ saintber:之後,可以研究一下InitializeComponent 03/15 22:06