img = getImage( getClass( ).getResource(getParameter("img")) ); MyObserver mo = new MyObserver( ); img.getWidth( mo ); img.getHeight( mo ); prepareImage( img, mo );
g.drawImage(img, 0, 0, null);