• Post Reply Bookmark Topic Watch Topic
  • New Topic

Text File to JPG file conversion using Java  RSS feed

 
Buhari
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body tell me how can we convert a text file to a JPEG file using java.. I want it to be converted into a single 800x600 JPEG image whatever the size of the text file.. moreover there must not be any alignment problems.. i ve tried the PSP image creation, but it does save text as a number of images, which i dont desire.. Moreover I get alignment problems in it.. Thanks in advance for any help/assistance.. It is just a plain text message.. with tab spaces (just a tabular format in PLAIN TEXT-no columns like that of a table).. I must save the shole file as a single JPEG image..

[ November 09, 2007: Message edited by: Hack Java ]
[ November 09, 2007: Message edited by: Buhari ]
 
David Wheeler
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before I even look at that code... what sort of text file? What sort of image? Do you want an image that shows the text? (In what fornt? How should it be formatted? Is the text in HTML, XML, RTF or some other format?) Or does the text represent an image somehow, e.g. by using Base64 or some other algorithm to encode binary data? There really is no way to answer this without knowing more about the text file.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Hack Java", please check your private messages. You can see them by clicking My Private Messages.
 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Buhari"

Your name still does not conform to the JavaRanch Naming Policy. Please review the policy and update it appropriately. This is your second warning.

Scott
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!