downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::charcoalImage> <Imagick::blurImage
[edit] Last updated: Wed, 22 May 2013

view this page in

Imagick::borderImage

(PECL imagick 2.0.0)

Imagick::borderImage画像の周りを枠線で囲む

説明

bool Imagick::borderImage ( mixed $bordercolor , int $width , int $height )

画像の周りを枠線で囲みます。枠線の色は ImagickPixel オブジェクトで指定します。

パラメータ

bordercolor

枠線の色を含む ImagickPixel オブジェクトあるいは文字列。

width

枠線の幅。

height

枠線の高さ。

返り値

成功した場合に TRUE を返します。

変更履歴

バージョン 説明
2.1.0 色を表す文字列を最初のパラメータとして指定できるようになりました。 これまでのバージョンでは ImagickPixel オブジェクトしか指定できませんでした。



add a note add a note User Contributed Notes Imagick::borderImage - [1 notes]
up
0
mlong-php at mlong dot us
5 years ago
How to set a 1 pixel border on an image object ($im):

  $color=new ImagickPixel();
  $color->setColor("rgb(220,220,220)");
  $im->borderImage($color,1,1);

 
show source | credits | sitemap | contact | advertising | mirror sites