Hi Damian
First of all, with 1.6, you can't use GIF, but JPEG and PNG is still avaible!
Just some basic GD steps:
1.
load picture
<?php
$im = ImageCreateFromJpeg("$DOCUMENT_ROOT/path/to/picture/knap.jpg");
?>
2. write text on picture
<?php
$black = ImageColorAllocate($im,0,0,0);
ImageTTFText ($im,10,0,5,15,$black,"font.ttf","some text");
?>
$sort = ImageColorAllocate($im,red,green,blue);
if red, and green and blue = 0 - it means black
$im = remember the $im, is the picture we opened before
ImageTTFText ($im,10,0,5,15,$sort,"font.ttf","Menupunkt");
remember the first number (10) is the font-size, the next number is the degree of the text, and the last two numbers are the cordinates of the text
Final (to make a complete example):
<?php
$im = ImageCreateFromJpeg("$DOCUMENT_ROOT/tuts/gdlib/knap.jpg");
$sort = ImageColorAllocate($im,0,0,0);
ImageTTFText ($im,10,0,5,15,$sort,"arial.ttf","Menupunkt");
header("Content-type: image/jpeg"); // image/png if it is a png picture
ImageJPEG($im); // or ImagePNG if it is PNG
ImageDestroy($im);
?>