Results 1 to 2 of 2
  1. #1
    InTheEndo is offline Member
    Join Date
    Jul 2011
    Rep Power

    Default 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!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    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)


    edit And to read/save the image, you may want to use ImageIO
    ImageIO (Java Platform SE 6)

Similar Threads

  1. Writing text into an image and save it
    By elcapi in forum Java 2D
    Replies: 6
    Last Post: 09-18-2009, 05:47 PM
  2. how to save image to disk after using pixelgrabber
    By shishirg in forum Advanced Java
    Replies: 5
    Last Post: 02-28-2009, 02:45 PM
  3. Simple: Text to an image & save.
    By cilaes in forum Java 2D
    Replies: 4
    Last Post: 09-06-2008, 06:16 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts