Results 1 to 2 of 2
- 07-28-2011, 08:18 AM #1
Member
- Join Date
- Jul 2011
- Posts
- 1
- Rep Power
- 0
How to import image, draw circles/text on it, and save a new image to disk
I'm a complete Image I/O & 2d graphics noob, no idea where to start on this. I've already set up my program to parse data from an XML file. What I need to do now is take an input image, draw a circle and label it with a number at the X,Y points I parsed, and save a new image. I have no idea where to start... never worked with this stuff before.
If anyone can point me at some tutorials or example code, it would be much appreciated!
- 07-28-2011, 08:48 AM #2
You'll need to familiarize yourself with the Graphics and Graphics2D API:
Graphics (Java Platform SE 6)
Graphics2D (Java Platform SE 6)
Then there's the 2D tutorial: Trail: 2D Graphics (The Java™ Tutorials)
And if you need to show the image on screen, you'll want to learn Swing: Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
db
edit And to read/save the image, you may want to use ImageIO
ImageIO (Java Platform SE 6)
Similar Threads
-
Writing text into an image and save it
By elcapi in forum Java 2DReplies: 6Last Post: 09-18-2009, 05:47 PM -
how to save image to disk after using pixelgrabber
By shishirg in forum Advanced JavaReplies: 5Last Post: 02-28-2009, 02:45 PM -
Simple: Text to an image & save.
By cilaes in forum Java 2DReplies: 4Last Post: 09-06-2008, 06:16 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks