(PHP 4, PHP 5)
imagestringup — Draw a string vertically
Draws a string vertically at the given coordinates.
Zasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak imagecreatetruecolor().
Może przyjąć 1, 2, 3, 4, 5 dla wbudowanych czcionek w kodowaniu latin2 (gdzie większy numer odpowiada większej czcionce) lub własny dowolny identyfikator czcionki zarejestrowany przez 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().
Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.
Przykład #1 imagestring() example
<?php
// create a 100*100 image
$im = imagecreatetruecolor(100, 100);
// Write the text
$textcolor = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
imagestringup($im, 3, 40, 80, 'gd library', $textcolor);
// Save the image
imagepng($im, './stringup.png');
imagedestroy($im);
?>
Powyższy przykład wyświetli coś podobnego do: