Java Draw Image drawImage(BufferedImage bi, RenderedImage im)

Here you can find the source of drawImage(BufferedImage bi, RenderedImage im)

Description

draw Image

License

Open Source License

Declaration

private static void drawImage(BufferedImage bi, RenderedImage im) 

Method Source Code


//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*/
    }
}

Related

  1. drawBubble(BufferedImage img, Graphics g, Component component)
  2. drawBytes(BufferedImage image, byte[] buf)
  3. drawCenterCrop(Graphics2D g, BufferedImage source, Rectangle dstRect)
  4. drawCenteredImage(Rectangle2D bounds, Graphics2D g2, Image image, ImageObserver observer, int imageWidth, int imageHeight, boolean shrink)
  5. DrawCross(BufferedImage bi, Point pt)
  6. drawImage(BufferedImage originalImage, BufferedImage scaledImage, int width, int height)
  7. drawImage(BufferedImage srcImg, BufferedImage img2Draw, int w, int h)
  8. drawImage(BufferedImage target, Point targetPoint, BufferedImage source)
  9. drawImage(final Graphics2D graphics, final Image image, final Rectangle rectangle)