importTileBitmap(tilebmp, cutter, createTiles);
Toolkit tk = Toolkit.getDefaultToolkit();  if (transparentColor != null) { int rgb = transparentColor.getRGB(); image = tk.createImage( new FilteredImageSource(image.getSource(), new TransparentImageFilter(rgb))); }  BufferedImage buffered = new BufferedImage( image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_ARGB); buffered.getGraphics().drawImage(image, 0, 0, null);  importTileBitmap(buffered, cutter);
    public void importTileBitmap(String imgFilename, TileCutter cutter,                                 boolean createTiles) throws Exception    {        // IOException will propagate upwards when file cannot be found        tilebmpFile = new File(imgFilename);        tilebmpFileLastModified = tilebmpFile.lastModified();        BufferedImage tilebmp = ImageIO.read(tilebmpFile);        if (tilebmp == null) {            throw new Exception("Failed to load " + tilebmpFile);        }        importTileBitmap(tilebmp, cutter, createTiles);    }