PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Imagick::statisticImage - Description | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Imagick::statisticImage

(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)

Imagick::statisticImageDescription

説明

public void Imagick::statisticImage ( int $type , int $width , int $height [, string $CHANNEL = Imagick::CHANNEL_DEFAULT ] )

Replace each pixel with corresponding statistic from the neighborhood of the specified width and height.

パラメータ

type

width

height

CHANNEL

返り値

例1 Imagick::statisticImage()

<?php
function statisticImage($imagePath$statisticType$width$height$channel) {
    
$imagick = new \Imagick(realpath($imagePath));

    
$imagick->statisticImage(
        
$statisticType,
        
$width,
        
$height,
        
$channel
    
);

    
header("Content-Type: image/jpg");
    echo 
$imagick->getImageBlob();
}

statisticImage($imagePath, \Imagick::STATISTIC_MEDIAN55, \Imagick::CHANNEL_DEFAULT);

?>


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Imagick::statisticImage - Description」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Imagick::statisticImage - Description」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: