Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java GUI 设计 » Swing  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 求教Graphics
tiandi





发贴: 3
积分: 0
于 2006-12-28 16:32 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如何利用Graphics.drawImage()在JFrame的contentPane上的制定位置绘制一张图片(该图片是本地磁盘上的例如d:\1.JPG), 能否给深入剖析一下Graphics怎么用以及什么叫作图形上下文.


作者 Re:求教Graphics [Re:tiandi]
cym_zl





发贴: 5
积分: 0
于 2007-01-06 12:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在窗口中画图片,不能直接画,要定一个画布Canvas
Toolkit tk=getToolkit();
Image img=tk.getImage(d:\1.jpg);
tk.drawImage(img);
这样就可以在里面把图片画出来了,不要想复杂了。没有很深!



作者 Re:求教Graphics [Re:tiandi]
linuxnet





发贴: 3
积分: 0
于 2007-01-16 12:35 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
up


作者 Re:求教Graphics [Re:tiandi]
Jupiter





发贴: 1
积分: 0
于 2008-03-25 13:24 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
up
我也正在头疼这种问题!谢谢~~




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923