CreateBitmap |
Bitmaps | |
Aptilis 1 |
CreateBitmap(width, height)
CreateBitmap creates a virtual (ie. in memory) bitmap
for you to draw onto.
There are several graphic functions that allow you to
set pixels, draw lines, circles, etc...
You can then either save the graphic into a GIF file or
output it into the standard output if you want to send
a GIF file to a web page through a CGI-script.
A default palette is assigned to the bitmap. Aptilis bitmap
can only be of the 256 colour type. You can change the colours
if you wish to, but that may ruin the True Type fonts anti-aliasing.
See also
setColor,
RGB,
hexColor.
Return Value:
The handle of the new bitmap, or -1 if it wasn't possible
to create the bitmap because of a lack of memory or because
one or the two dimensions was equal to 0.
Check _errno for more details.
For more details see the Bitmap topic.