Foxtable(狐表)用户栏目专家坐堂 → [求助]GDI绘图,怎么给图形框内加上文字?


  共有6978人关注过本帖树形打印复制链接

主题:[求助]GDI绘图,怎么给图形框内加上文字?

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


加好友 发短信
等级:管理员 帖子:47449 积分:251065 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2013/2/28 15:32:00 [显示全部帖子]

Dim P As WinForm.Painter = e.Form.Controls("Painter1")
Dim G As Graphics = P.Graphics
Dim N As New pen(color.blue , 2)
Dim fnt As New Font("宋体",10)
g.DrawRectangle(n,50,50,100,50)
g.DrawString("fox",fnt,Brushes.Red,50,50)
p.Repaint()

 回到顶部