1 |
The Graphics class provides a method drawImage to actually display the image on the browser screen.
-
void paint ( )
-
{ g.drawImage ( img, 10, 10, this) ; }
-
where the top left corner of the image will be drawn at (x,y) position (10,10)
-
use "this" as the ImageObserver argument, even if you don't use the ImageObserver to control downloading
|