This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes overlay jpeg with text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "overlay jpeg with text" Watch "overlay jpeg with text" New topic

overlay jpeg with text

Sari Norcross

Joined: Sep 06, 2001
Posts: 1
I need to overlay text onto a jpeg file then save the combined effect into one jpeg file. Can this be done with Image and Graphics classes? I am not having much luck.
Karen Parker

Joined: May 16, 2001
Posts: 15
You might want to check out the Java Jpeg Encoder at:
Once you've got a Graphics object or Image with the desired graphics and text, you can use the JpegEncoder to write it to a Jpeg. There are also Gif encoders available (see, although technically you need a license from Unisys if you plan on using the gif encoding algorithm in your program.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: overlay jpeg with text
It's not a secret anymore!