ImagickDraw::__construct
(PECL imagick 2, PECL imagick 3)
ImagickDraw::__construct — The ImagickDraw constructor
返回值
没有返回值。

User Contributed Notes 1 note
Anonymous ¶
13 years ago
To set up and output an image the very minimum:
<?php
$img = new Imagick();
$img->newImage( 200, 200, new ImagickPixel( 'lime' ) );
$img->setImageFormat( "png" );
header( "Content-Type: image/png" );
echo $img;
?>
Copy, paste; and if imagemagick is enabled it should come up with a lime colored square.
备份地址:http://www.lvesu.com/blog/php/imagickdraw.construct.php