由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Re: getImage&drawImage的问题
相关主题
Question: OutOfMemoryError when drawImagGraphics question
Java drawImage help please. Urgent!How to display .bmp image
getImage有个问题How to resize an icon?
[转载] create gif/png image in C or javaRe: [转载] create gif/png image in C or ja
[转载] 怎样让鼠标指向文字的时候文字变化 ?怎么能够减少image上的锯齿?
Re: SWING APPLET如何显示IMAGE?Re: Question: OutOfMemoryError when draw
How to scroll an JInternalFrameWrap up -Re: Question: OutOfMemoryError
a question about "setXORMode", urgent!JAVA 面世题.
相关话题的讨论汇总
话题: getimage话题: drawimage话题: image话题: ig
进入Java版参与讨论
1 (共1页)
r*u
发帖数: 436
1
如果想 preload Image 的话可以用 MediaTracker:
Image ig=getToolkit().getImage(getClass().getResource(ImageName));
MediaTracker tracker=new MediaTracker(this);
tracker.addImage(ig, 0);
try
{
tracker.waitForAll();
}
catch (Exception e){}
至于 drawImage,一经调用就会返回一个 boolean 值,如果 Image 尚未完全调出
就返回 False。
1 (共1页)
进入Java版参与讨论
相关主题
JAVA 面世题.[转载] 怎样让鼠标指向文字的时候文字变化 ?
Display, edit, and save Image on HTMLRe: SWING APPLET如何显示IMAGE?
Another Image quesHow to scroll an JInternalFrame
Re: Display, edit, and save Image on HTMa question about "setXORMode", urgent!
Question: OutOfMemoryError when drawImagGraphics question
Java drawImage help please. Urgent!How to display .bmp image
getImage有个问题How to resize an icon?
[转载] create gif/png image in C or javaRe: [转载] create gif/png image in C or ja
相关话题的讨论汇总
话题: getimage话题: drawimage话题: image话题: ig