public void fillRect ( int x , int y , int w , int h , Color c ) { int color = c . getRGB ( ) ; for ( int i = x ; i < x + w ; i ++ ) { for ( int j = y ; j < y + h ; j ++ ) { setIntColor ( i , j , color ) ; } } }
Fills a rectangle in the image .