Here you can find the source of drawImage(BufferedImage bi, RenderedImage im)
private static void drawImage(BufferedImage bi, RenderedImage im)
//package com.java2s; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.awt.image.RenderedImage; public class Main { private static void drawImage(BufferedImage bi, RenderedImage im) { Graphics2D g = bi.createGraphics(); g.drawRenderedImage(im, new AffineTransform()); g.dispose();/*from w ww.j av a 2 s .c o m*/ } }