boolean imagestringup(integer image, integer font, integer x,
integer y, string text, integer color)
The imagestringup function draws a string oriented vertically instead of horizontally.
Otherwise it works identically to imagestring.
<?
/*
* Write "Hello, World!" vertically
/
//create blue square
$image = imagecreate(50, 200);
$colorBlue = imagecolorallocate($image, 128, 128, 255);
$colorBlack = imagecolorallocate($image, 0, 0, 0);
imagefill($image, 0, 0, $colorYellow);
//draw some text with loaded font
imagestringup($image, 4, 10, 150, "Hello World!", $colorBlack);
//send image
header("Content-type: image/jpeg");
imagejpeg($image);
?>
integer imagesx(integer image)
The imagesx function returns the width in pixels of the specified image.