The Artima Developer Community
Sponsored Link

Java Answers Forum
JPG

2 replies on 1 page. Most recent reply: Nov 28, 2005 10:29 PM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
steve chu

Posts: 14
Nickname: chuchutrai
Registered: Nov, 2005

JPG Posted: Nov 28, 2005 4:48 PM
Reply to this message Reply
Advertisement
in addition to the previous post, how do I add text to a jpg file?


steve chu

Posts: 14
Nickname: chuchutrai
Registered: Nov, 2005

Re: JPG Posted: Nov 28, 2005 5:05 PM
Reply to this message Reply
actually some clarification, so i want to create a jpg file with a jpg image with text comment underneath the image. Thanks

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: JPG Posted: Nov 28, 2005 10:29 PM
Reply to this message Reply
1. Why didn't you answer to the previous topic and created a new one?
2.
g.drawString("MyText", positionX, positionY)

g is the Graphics object of the BufferedImage.

Note: Your text will be drawn into the image.
jpeg is only able to store graphics, so there is no other way to store the text.

Flat View: This topic has 2 replies on 1 page
Topic: java.io.FileNotFoundException: <a href="http://localhost:8080">http://localhost:8080</a> Previous Topic   Next Topic Topic: spam

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use