Here you can find the source of drawImage(Graphics2D g, BufferedImage image, int x, int y)
Parameter | Description |
---|---|
g | Graphics2D |
image | BufferedImage |
x | X-Koordinate |
y | Y-Koordinate |
public static void drawImage(Graphics2D g, BufferedImage image, int x, int y)
//package com.java2s; //License from project: Open Source License import java.awt.Graphics2D; import java.awt.image.BufferedImage; public class Main { /**/*from w w w .jav a 2 s. c o m*/ * Malt ein BufferedImage auf ein Graphics2D-Objekt. * * @param g * Graphics2D * @param image * BufferedImage * @param x * X-Koordinate * @param y * Y-Koordinate */ public static void drawImage(Graphics2D g, BufferedImage image, int x, int y) { g.drawImage(image, x, y, null); } /** * Malt ein BufferedImage auf ein Graphics2D-Objekt. * * @param g * Graphics2D * @param image * BufferedImage * @param x * X-Koordinate * @param y * Y-Koordinate * @param width * Breite * @param height * Hoehe */ public static void drawImage(Graphics2D g, BufferedImage image, int x, int y, int width, int height) { g.drawImage(image, x, y, width, height, null); } }