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

search for in the

Gmagick> <定義済み定数
[edit] Last updated: Fri, 10 Feb 2012

view this page in

次の例は、Gmagick での一般的な画像操作の方法を示すものです。

例1 Gmagick の例

<?php
// 新しい Gmagick オブジェクトのインスタンスを作成します
$image = new Gmagick('example.jpg');

// 読み込んだ画像のサムネイルを作成します。どちらかの軸に 0 を指定すると、アスペクト比を維持します
$image->thumbnailImage(1000);

// 画像の周りに枠をつけ、油彩風に見えるようにします
// このように、Gmagick ではメソッドの連結に対応していることに注意しましょう
$image->borderImage("yellow"88)->oilPaintImage(0.3);

// 現在の画像をファイルに書き込みます
$image->write('example_thumbnail.jpg');
?>


add a note add a note User Contributed Notes
There are no user contributed notes for this page.

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