ASCIIArtistASCIIArtist class
Located in /ASCIIArtist.php (line 46)
void
renderHTMLImage
([integer $mode = 1], [integer $resolution = 2], [string $fixedChar = 'W'], [boolean $flipH = false], [boolean $flipV = false])
Returns the height of the original bitmap image in pixels
Returns the width of the original bitmap image in pixels
Renders the image into HTML
The following modes are implemented:
Formatting error messages using CSS
Tries to set the given bitmap image as source for the ASCII image and determines width and height
If $filename begins with "http://" (not case sensitive), an HTTP 1.0 connection is opened to the specified server, the page is requested using the HTTP GET method. If filename begins with "ftp://" (not case sensitive), an ftp connection to the specified server is opened. If the server does not support passive mode ftp, this will fail. If filename is one of "php://stdin", "php://stdout", or "php://stderr", the corresponding stdio stream will be opened. If filename begins with anything else, the file will be opened from the filesystem.
Formatting the HTML Image using CSS
Tip: Use width-fixed fonts such as Courier only.
Documentation generated on Sun, 4 Jan 2004 14:03:04 +0100 by phpDocumentor 1.2.3