Agreed. I've done this with maps (images) and text. The APIs are available
from Sun, you'd just need to glue them together. As long as the files were
pure text (as opposed to formatted) this would be relatively easy using
FontMetrics...

___________________________________
Ray Bivens


-----Original Message-----
From: pallav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 12:27 AM
To: [EMAIL PROTECTED]
Subject: Re: Text - 2 - Image


you could create an Image object from
Container.createImage(width,height)...then get the Graphics object by
Image.getGraphics() and then draw all the text onto it using
drawString()...u would have to calculate stuff by FontMetrics....then u
could write the image by usin the new javax.imageio package...
ImageIO.write(img, "tiff", file);
http://pallav.cjb.net for java stuf...

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to