Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drawing a BufferedImage on itself doesn't work....!?

Status
Not open for further replies.

Clemens

Programmer
Aug 19, 2001
5
DE
Hi,
Can anybody explain why that doesn't work:

BufferedImage img = new BufferedImage(100,100);
Graphics2D gfx = img.createGraphics();

gfx.drawImage(img.getSubimage(0,50,100,50), 0, 50, null);


I don't know any other possibility to trim an image, do you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top