• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Text File to JPG file conversion using Java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Hack Java", please check your private messages. You can see them by clicking My Private Messages.
 
author
Posts: 4342
40
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You may have just won ten million dollars! Or, maybe a tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic