Imagick::setImageArtifact

(No version information available, might only be in Git)

Imagick::setImageArtifactSet image artifact

설명

bool Imagick::setImageArtifact ( string $artifact , string $value )

Associates an artifact with the image. The difference between image properties and image artifacts is that properties are public and artifacts are private. 이 메쏘드는 Imagick을 ImageMagick 6.5.7 이상으로 컴파일 했을 때만 사용할 수 있습니다.

인수

artifact

The name of the artifact

value

The value of the artifact

반환값

성공시에 TRUE를 반환합니다.

오류/예외

오류시에 ImagickException이 발생합니다.

참고

예제

Example #1 Imagick::setImageArtifact()

<?php
function setImageArtifact() {

    
$src1 = new \Imagick(realpath("./images/artifact/source1.png"));
    
$src2 = new \Imagick(realpath("./images/artifact/source2.png"));

    
$src2->setImageVirtualPixelMethod(\Imagick::VIRTUALPIXELMETHOD_TRANSPARENT);
    
$src2->setImageArtifact('compose:args'"1,0,-0.5,0.5");
    
$src1->compositeImage($src2Imagick::COMPOSITE_MATHEMATICS00);
    
    
$src1->setImageFormat('png');
    
header("Content-Type: image/png");
    echo 
$src1->getImagesBlob();
}

?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top