PHP.nl

imagecreatetruecolor

imagecreatetruecolor

Create a new true color image

 **imagecreatetruecolor** int $width int $height
returns an image object

representing a black image of the specified size. imagecreatetruecolor

widthImage width.

heightImage height.

gd.return.identifier

**Voorbeeld: Creating a new GD image stream and outputting an image. **

<?php
header ('Content-Type: image/png');
$im = @imagecreatetruecolor(120, 20)
      or die('Cannot Initialize new GD image stream');
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,  'A Simple Text String', $text_color);
imagepng($im);
?>

imagecreate