+ Reply to Thread
Results 1 to 7 of 7

Thread: How to merge Text + Image in Java

  1. #1
    Junior Member ananthkolli's Avatar
    Join Date
    Apr 2007
    Location
    Chennai
    Posts
    26
    Rep Power
    8

    How to merge Text + Image in Java

    Hi guys,

    how can i merge Text + Image File in Java?
    i need to write a program which will take text as input (from DB) + Image(gif,jpeg etc) and create an image file which will have both...



    Does anybody have any ideas how to do this?

  2. #2
    Super Moderator sk_kireeti's Avatar
    Join Date
    Feb 2006
    Posts
    2,279
    Rep Power
    65

    Re: How to merge Text + Image in Java

    Ananth,

    Referring these links should help you in doing what you want.

    Gif4J PRO for Java - Text Rendering
    Drawing text is easy with three Java classes - Java World

    Thanks,
    Krishna

  3. #3
    Junior Member ananthkolli's Avatar
    Join Date
    Apr 2007
    Location
    Chennai
    Posts
    26
    Rep Power
    8

    Re: How to merge Text + Image in Java

    Thanks Krishna,

    i tried like, first created bufferedimage object for the original image, then i am using drawString() to merge the text...

    If you look closely at the newly created image, for some reason the text is not very sharp and the pixels around it gets messed up.see the attached image for clear details.

    how can i arase the messing...

    Attached Images Attached Images

  4. #4
    Super Moderator sk_kireeti's Avatar
    Join Date
    Feb 2006
    Posts
    2,279
    Rep Power
    65

    Re: How to merge Text + Image in Java

    Ananth,

    I will suggest you to try with different fonts. Not every font can be displayed properly always.

    Thanks,
    Krishna

  5. #5
    Junior Member ananthkolli's Avatar
    Join Date
    Apr 2007
    Location
    Chennai
    Posts
    26
    Rep Power
    8

    Re: How to merge Text + Image in Java

    Hi Krishna,

    for the font color red only its messed up like that. if we use other than red font it is good. for other colors also messing is ther but it is not that much visible. if u find any solutions give me...

  6. #6
    TAM
    TAM is offline
    Senior Member TAM's Avatar
    Join Date
    Oct 2006
    Location
    Mayiladurai (TN)
    Posts
    232
    Rep Power
    10

    Re: How to merge Text + Image in Java

    Hi ananth
    if u don't mind send your code to my id tamizh88@gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mega Free Download S/W Links A-Z
    By yathish in forum OTHERS
    Replies: 517
    Last Post: 19-07-10, 09:49 AM
  2. Sun Certification for Java
    By alchemist in forum JAVA Technologies
    Replies: 10
    Last Post: 12-02-09, 10:20 PM
  3. JAVA WEB SITES
    By yathish in forum JAVA Technologies
    Replies: 2
    Last Post: 20-11-08, 12:11 AM
  4. Practice Question in JAVA
    By sowmya571 in forum JAVA Technologies
    Replies: 8
    Last Post: 15-02-08, 08:09 PM
  5. JAVA Downloads
    By yathish in forum JAVA Technologies
    Replies: 2
    Last Post: 22-01-07, 01:37 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

Content Relevant URLs by vBSEO 3.5.1 PL1