Current Path : /usr/opt/php56/share/pear/test/imagick/tests/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/php56/share/pear/test/imagick/tests/118_Imagick_setImageArtifact_basic.phpt |
--TEST-- Test Imagick, setImageArtifact --SKIPIF-- <?php $imageMagickRequiredVersion=0x675; require_once(dirname(__FILE__) . '/skipif.inc'); ?> --FILE-- <?php function setImageArtifact() { $src1 = new \Imagick(); $src1->newPseudoImage(640, 480, "magick:logo"); $src2 = new \Imagick(); $src2->newPseudoImage(480, 640, "magick:WIZARD"); $src2->setImageVirtualPixelMethod(\Imagick::VIRTUALPIXELMETHOD_TRANSPARENT); $src2->setImageArtifact('compose:args', "1,0,-0.5,0.5"); $src1->compositeImage($src2, Imagick::COMPOSITE_MATHEMATICS, 0, 0); $src1->setImageFormat('png'); $bytes = $src1->getImagesBlob(); if (strlen($bytes) <= 0) { echo "Failed to generate image.";} } setImageArtifact() ; echo "Ok"; ?> --EXPECTF-- Ok