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¶m1=12¶m2=53" />(You need the replace the different parts in the example above with values relevant to your server).
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.