©
本文檔使用 php中文網手册 發布
(PECL imagick 2.0.0)
ImagickDraw::__construct — The ImagickDraw constructor
本函数还未编写文档,仅有参数列表。
The ImagickDraw constructor
没有返回值。
[#1] Anonymous [2009-03-31 14:59:13]
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.