BitmapTxt is an open source ColdFusion 8 application that renders text and ascii files into an image for web viewing. Using authentic bitmap text mode fonts for both the Amiga and DOS PC any text file can be viewed the way it was intended by its authors. It is based off the PHP application NFO Viewer 1 by Richard David that was released in May of 2007.
BitmapTxt website: bitmaptxt.riaforge.org
Please view the source of bitmaptxt-example.cfm to see the examples' arguments.
| Attributes | Type/Range | Result |
|---|---|---|
source |
string absolute or relative path |
This is the path to and the name of the file you wish to convert, it is the only required attribute. |
destination |
string absolute or relative path or writeToBrowser |
This is the path to the directory where you wish to save the image, otherwise if set to 'writeToBrowser' then the image will displayed directly to the web browser without writing it to a file. Default: writeToBrowser |
bgc |
string HTML named, hexadecimal or rgb colour value |
The background colour of the image. This can be a HTML named colour, a hexadecimal colour or an RGB value. Default: 000000 (black) |
border |
integer | This is the size (in pixels) of the rectangular border around the outside edge of the image. Default: 0 |
colour |
integer range (0 - 15) | This is a numeric value representing which font colour should be used. Default: 0 0 Black1 Dark Blue2 Dark Green3 Dark Cyan4 Red5 Purple6 Brown7 Light Grey8 Grey9 Dark Sky Blue10 Light Green11 Cyan12 Light Red13 Light Purple14 Yellow15 White |
fontreload |
integer range (0 - 10) | Reload the font character file at every fontreload value line pass during the image generation process. A 0 value disables this function, a 1 value reloads the font file every line pass, while a 5 value would reload it at every 5th pass. Default: 0 |
font |
list 80x50, 80x25, amiga, damn, topaz |
The bitmap (raster) font to use.
|
format |
list png, jpeg, gif, tiff, bmp |
Format the image should be displayed in or saved as. Default: PNG |
imagetype |
list gb, argb, grayscale |
Colour scale the image should support. Grayscale converts colours into shades of grey, but when combined with the PNG format it offers a significant reduction to the size of the file. |
| This attribute was removed after BitampTxt 0.7 | ||
imagedump |
boolean | CFDump the image details such as width, height, colour information and rendering time. Default: No |