Foxtable(狐表)用户栏目专家坐堂 → [求助]如何获得Graphics的宽度和高度?


  共有2328人关注过本帖平板打印复制链接

主题:[求助]如何获得Graphics的宽度和高度?

帅哥哟,离线,有人找我吗?
yinyb36
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:953 积分:7252 威望:0 精华:0 注册:2011/9/6 13:36:00
[求助]如何获得Graphics的宽度和高度?  发帖心情 Post By:2015/5/26 12:46:00 [只看该作者]

示例中:

Dim p As WinForm.Painter = e.Form.Controls("Painter1")
Dim
g As Graphics = p.Graphics
Dim
fnt As New Font("宋体",16)
Dim
msg As String = "I Like Foxtable"
g.DrawString(msg,fnt,Brushes.Red,10,10)
p.Repaint()


只能获得p的宽度和高度,怎么获得g的宽度和高度?


 回到顶部