Results 1 to 5 of 5
  1. #1
    Binz is offline Member
    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    0

    Default How to add text on an image

    Guys,

    Can someone please help me to write a java code which will take the user input (from the keyboard) that can be added on top an image?

    Thanks!

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,939
    Rep Power
    8

    Default Re: How to add text on an image

    You're going to have to be more specific. Are you talking about a GUI that simply displays an image with some text on top? Are you talking about a command-line program that takes an image file and inserts some text into the file? A combination of both? What have you tried? Where are you stuck? Which part of this are you confused about?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Binz is offline Member
    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    0

    Default Re: How to add text on an image

    It is a set of images from which one image has to be selected. Using a command line program, the user input should be inserted onto the selected image. So far, I could create a gallery with a set image, but none of the images can be edited.

    Thanks for looking into this problem.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,939
    Rep Power
    8

    Default Re: How to add text on an image

    Well, you can create a BufferedImage, get the Graphics from it, draw whatever image you want into it, then do any other drawing you want with the Graphics. Then output the BufferedImage to a file.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Binz is offline Member
    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    0

    Default Re: How to add text on an image

    Thanks! I will look into that

Similar Threads

  1. Replies: 4
    Last Post: 08-09-2012, 06:18 PM
  2. Writing text onto an image
    By cokoder in forum AWT / Swing
    Replies: 1
    Last Post: 02-14-2012, 08:35 AM
  3. Replies: 1
    Last Post: 07-28-2011, 08:48 AM
  4. Extracting Text from Image
    By kish27 in forum Advanced Java
    Replies: 3
    Last Post: 03-08-2011, 03:42 AM
  5. How to convert image to text
    By asabdo in forum New To Java
    Replies: 9
    Last Post: 12-13-2010, 08:01 AM

Posting Permissions

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