protected BufferedImage createErrorImage ( final Rectangle area ) { final BufferedImage bufferedImage = new BufferedImage ( area . width , area . height , TYPE_INT_ARGB_PRE ) ; final Graphics2D graphics = bufferedImage . createGraphics ( ) ; try { graphics . setBackground ( ColorParser . toColor ( this . configuration . getTransparentTileErrorColor ( ) ) ) ; graphics . clearRect ( 0 , 0 , area . width , area . height ) ; return bufferedImage ; } finally { graphics . dispose ( ) ; } }
Create an error image .