• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

overlay jpeg with text

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic