suppongo che questo gestisce tutto

Codice PHP:
         ImageString($image$font_size$position_x$position_y$valueImageColorAllocate ($image$font_color[0], $font_color[1], $font_color[2]));