imagecharup
imagecharup
Draw a character vertically
true **imagecharup** GdImage $image $font int $x int $y string $char int $color
Draws the character vertically at the specified
coordinate on the given .
char``image
xx-coordinate of the start.
yy-coordinate of the start.
charThe character to draw.
colorgd.identifier.color
return.true.always
Voorbeeld: example
<?php
$im = imagecreate(100, 100);
$string = 'Note that the first letter is a N';
$bg = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
// prints a black "Z" on a white background
imagecharup($im, 3, 10, 10, $string, $black);
header('Content-type: image/png');
imagepng($im);
?>
imagechar``imageloadfont