Imagick::getImage

(PECL imagick 2, PECL imagick 3)

Imagick::getImageReturns a new Imagick object

说明

public Imagick::getImage(): Imagick

Returns a new Imagick object with the current image sequence.

参数

此函数没有参数。

返回值

Returns a new Imagick object with the current image sequence.

错误/异常

错误时抛出 ImagickException。

add a noteadd a note

User Contributed Notes 1 note

up
1
Abe
1 year ago
<?php
 
// Create a new imagick object
$imagick = new Imagick();
 
// Read the image
$pngfn='myfile.png';
$imagick->readImage($pngfn);
 
// Display the image
header("Content-Type: image/png");
echo
$imagick->getImageBlob();
?>

备份地址:http://www.lvesu.com/blog/php/imagick.getimage.php