Re: Java graphics manipulation
I don't think the built-in stuff implements PBM, but basically you use ImageIO.read to create a BufferedImage, get the Graphics2D from that image, read in the other image, then use Graphics2D.drawImage to insert the second in the first. ImageIO.write outputs the result.
BufferedImage i1 = ImageIO.read(stream1);\nBufferedImage i2 = ImageIO.read(stream2);\ng2 = i1.getGraphics();\ng2.drawImage(i2, null, x, y);\nImageIO.write(i1, "pbm", outputStream);
Supposedly the JAI Image I/O Tools supports PBM.