scottlai
元老
发贴: 451
积分: 366
|
于 2002-08-16 13:27
libinbin wrote: drawImage public abstract boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) 这个里面的 ImageObserver 设置为 this 或者为 null 有什么区别? ImageObserver 是干什么的? This method returns immediately in all cases, even if the complete image has not yet been loaded, and it has not been dithered and converted for the current output device. If the image has not yet been completely loaded, then drawImage returns false. As more of the image becomes available, the process that draws the image ***notifies the specified image observer.***
|