• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to save a part or region of an image drawn using graphics to a file..?  RSS feed

 
Pendurthi prashanth
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi... GUYS and GALS

I've been able to draw an image using drawimage function. Now I want to save only part of the drawn image to a file. How do I do that? Please suggest.

Thanking you in Advance

P-R-E-S-I

 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Writing to a file: ImageIO
Getting a subimage of a BufferedImage: getSubimage(x,y,w,h)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!