Well, here's what I have:
PHP Code:
header ("Content-type: image/png");
$image_text = "Sample Text";
$img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
ImageString ($img_handle, 31, 5, 5, $image_text, $txt_color);
ImagePng ($img_handle);
This creates an image with a black background and pink text.
It's simple, 230px by 20px.
Hope that at least gets you down the right path.
Make sure that there's no line breaks between the opening <? and the header("Content-type: image/png"); part.
Also, make sure GD is installed on your server.
Bookmarks