Thanks for your suggestions Pallav & Ray. Yes, I think I will have to use drawString() and imageio package. Will give it a try this weekend (if I get time or will be Monday) & let you all know how I went.
Thanks again ... Puneet >>> [EMAIL PROTECTED] 03/08/02 01:48am >>> 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 ********************************************************************** ***** IMPORTANT INFORMATION ***** This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St.George is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ********************************************************************** ___________________________________________________________________________ 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
