BufferedImage cat = ImageIO.read(new File("cat.jpg")); //read existing file
//modify it
Graphics g = cat.createGraphics();
g.setColor(Color.RED);
g.drawString("Cat", 10, 10);
g.dispose();
//now create a new image
BufferedImage cats = new BufferedImage(256, 256, Buffere...