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