An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont().
x-coordinate of the upper left corner
y-coordinate of the upper left corner
The string to be written
A color identifier created with imagecolorallocate()