This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drawing on a photo.

 
Kaif Ahmed
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone, just wondering if anyone could give me a hand with something.

I need to load a JPEG (or any other image file type) so that it displays it in the JFrame, then when the user presses a button, it will draw a few rectangles on top of the image.

Problem is, I'm not quite sure how to do this. I've read up somewhere that Buffered Image may be the key, but I haven't found any decent tutorials

Thanks in advance for the help.

(in case you're wondering, it's for a face detection program, don't be too impressed, I'm using a library that does all of this).
 
Tom Sullivan
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might start by looking at the java.awt.image package. If that won't do it for you, the Java Advanced Imaging API may have what you need (there is an on-line tutorial/book for this). You can also look at ImageJ.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic