<?php // Create a new imagick object$imagick = new Imagick(); // Read the image$pngfn='myfile.png';$imagick->readImage($pngfn); // Display the imageheader("Content-Type: image/png");echo $imagick->getImageBlob();?>
(PECL imagick 2, PECL imagick 3)
Imagick::getImage — Yeni bir Imagick nesnesi döndürür
Geçerli resim dizisine dahil yeni bir Imagick nesnesi döndürür.
Bu işlevin bağımsız değişkeni yoktur.
Yeni bir Imagick nesnesi döndürür.
Hata durumunda bir ImagickException istisnası oluşur.