@Override
    public boolean drawImage(Image img, int x, int y, int w, int h, 
            Color bgcolor, ImageObserver observer) {
    """
	Draws an image to the rectangle {@code (x, y, w, h)} (scaling it if
	required), first filling the background with the specified color.  Note
	that the {@code observer} is ignored.
	
	@param img  the image.
	@param x  the x-coordinate.
	@param y  the y-coordinate.
	@param w  the width.
	@param h  the height.
	@param bgcolor  the background color ({@code null} permitted).
	@param observer  ignored.
	
	@return {@code true} if the image is drawn.
    """
        Paint saved = getPaint();
        setPaint(bgcolor);
        fillRect(x, y, w, h);
        setPaint(saved);
        return drawImage(img, x, y, w, h, observer);
    }
@Override
    public boolean drawImage(Image img, int x, int y, int w, int h, 
            Color bgcolor, ImageObserver observer) {
        Paint saved = getPaint();
        setPaint(bgcolor);
        fillRect(x, y, w, h);
        setPaint(saved);
        return drawImage(img, x, y, w, h, observer);
    }
@ Override public boolean drawImage ( Image img , int x , int y , int w , int h , Color bgcolor , ImageObserver observer ) { Paint saved = getPaint ( ) ; setPaint ( bgcolor ) ; fillRect ( x , y , w , h ) ; setPaint ( saved ) ; return drawImage ( img , x , y , w , h , observer ) ; }
Draws an image to the rectangle {@code (x, y, w, h)} (scaling it if
required), first filling the background with the specified color.  Note
that the {@code observer} is ignored.

@param img  the image.
@param x  the x-coordinate.
@param y  the y-coordinate.
@param w  the width.
@param h  the height.
@param bgcolor  the background color ({@code null} permitted).
@param observer  ignored.

@return {@code true} if the image is drawn.
Draws an image to the rectangle { @code ( x y w h ) } ( scaling it if required ) first filling the background with the specified color . Note that the { @code observer } is ignored .