public void dumpPngImage ( String imagePath , ReferencedEnvelope bounds , int imageWidth , int imageHeight , double buffer , int [ ] rgbCheck ) throws IOException { BufferedImage dumpImage = drawImageWithNewMapContent ( bounds , imageWidth , imageHeight , buffer ) ; boolean dumpIt = true ; if ( rgbCheck != null ) dumpIt = ! isAllOfCheckColor ( rgbCheck , dumpImage ) ; if ( dumpIt ) ImageIO . write ( dumpImage , "png" , new File ( imagePath ) ) ; //$NON-NLS-1$ }
Writes an image of maps drawn to a png file .