update : 2015.11.03
php.shukuma.com

검색:
 
 
Simulates a charcoal drawing

Imagick::charcoalImage

(PECL imagick 2.0.0)

Imagick::charcoalImageSimulates a charcoal drawing

설명

bool Imagick::charcoalImage ( float $radius , float $sigma )

Simulates a charcoal drawing.

인수

radius

The radius of the Gaussian, in pixels, not counting the center pixel

sigma

The standard deviation of the Gaussian, in pixels

반환값

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

예제

Example #1 Imagick::charcoalImage()

<?php
function charcoalImage($imagePath$radius$sigma) {
    
$imagick = new \Imagick(realpath($imagePath));
    
$imagick->charcoalImage($radius$sigma);
    
header("Content-Type: image/jpg");
    echo 
$imagick->getImageBlob();
}

?>