OutputGifBitmap

Bitmaps
Aptilis 1

OutputGifBitmap(BitmapHandle)

OutputGifBitmap is very similar to SaveGifFile except that the GIF picture is sent to the standard output, rather than to a file.
This comes very handy when you want to generate a graphic on the fly in a web page.
First, you need to put the IMG tag in your HTML document:

<img src="http://www.yourServer.com/cgi-bin/aptilis.exe?file=/home/aptilis/
            your_directory/yourAptilisProgram.e.txt&param1=12&param2=53" />
(You need the replace the different parts in the example above with values relevant to your server).
In the Aptilis script, before you send the picture, you need to send the appropriate magic line:
print("Content-type: image/gif\n\n")
And basically, that's all there is to it!

Return Value:
0, or -1 if the handle specified was incorrect. In case of file error, check the _errno variable for a more detailed explanation.

For more details see the Bitmap topic.