File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes overlay jpeg with text Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "overlay jpeg with text" Watch "overlay jpeg with text" New topic
Author

overlay jpeg with text

Sari Norcross
Greenhorn

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
Greenhorn

Joined: May 16, 2001
Posts: 15
You might want to check out the Java Jpeg Encoder at: http://www.obrador.com/essentialjpeg/jpeg.htm
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 www.acme.com), although technically you need a license from Unisys if you plan on using the gif encoding algorithm in your program.
 
IntelliJ Java IDE
 
subject: overlay jpeg with text
 
Threads others viewed
my overlay box works in Firefox, but fails in IE8
How to parse a combination file that contains text and image?
Writing and Reading JPEGS from stream
How do i go about displaying text and graphic files in java?
Can I change the response mime type midway?
IntelliJ Java IDE