Örnek 1 - PHP ile PNG oluşturma örneği
<?php
header("Content-type: image/png");
$string = $_GET['text'];
$foto     = imagecreatefrompng("images/button1.png");
$turuncu = imagecolorallocate($foto, 220, 210, 60);
$px     = (imagesx($foto) - 7.5 * strlen($string)) / 2;
imagestring($foto, 3, $px, 9, $string, $turuncu);
imagepng($foto);
imagedestroy($foto);
?><img
   src="button.php?text=gönder">. Yukarıdaki
   button.php betiği bu
   "gönder" dizgesini alır ve
   "images/button1.png"
   resminin üzerine yerleştirip elde edilen resmi çıktılar. Bu yöntem, her
   düğme için ayrı bir düğme resmi kullanmaktan daha verimlidir. Bu yöntemle
   düğmeler devingen olarak üretilir.
  
 