Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2003

Tip: Looking for answers? Try searching our database.

edit text on jpeg image

Thread view: 
LeiMing - 28 Aug 2003 07:46 GMT
How to edit text on jpeg image?
The user can redit the text on image which he has inputed and save the  new
image as JPEG.
how can I do?
Thanks!
Roedy Green - 28 Aug 2003 08:01 GMT
>How to edit text on jpeg image?
>The user can redit the text on image which he has inputed and save the  new
>image as JPEG.
>how can I do?

You must load it as an image. Do a drawString on the image, then save
it back as a jpeg.  See http://mindprod.com/jgloss/jpegencoder.html
for tools to do the save back.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 28 Aug 2003 08:02 GMT
>How to edit text on jpeg image?
>The user can redit the text on image which he has inputed and save the  new
>image as JPEG.
>how can I do?

If it already has text on it, you have a problem.  Jpeg text is just
part of the picture.  It is not a separate layer.  You would have to
draw a white box over it then put new text.

You could also use a painting tool to try to get rid of the old text.

See http://mindprod.com/jgloss/psp.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Marco Schmidt - 28 Aug 2003 15:27 GMT
LeiMing:

>How to edit text on jpeg image?
>The user can redit the text on image which he has inputed and save the  new
>image as JPEG.

Here's some sample code:
<http://www.geocities.com/marcoschmidt.geo/java-highlight.html>. It
also colorizes an area, all you need is the graphics.drawString part.

Regards,
Marco
Signature

Please reply in the newsgroup, not by email!
Java programming tips: http://jiu.sourceforge.net/javatips.html
Other Java pages: http://www.geocities.com/marcoschmidt.geo/java.html



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.