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

search for in the

Imagick::newPseudoImage> <Imagick::negateImage
Last updated: Fri, 30 Jan 2009

view this page in

Imagick::newImage

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

Imagick::newImage新しい画像を作成する

説明

bool Imagick::newImage ( int $cols , int $rows , mixed $background [, string $format ] )
警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

新しい画像を作成し、ImagickPixel の値を背景色として関連付けます。

パラメータ

cols

新しい画像のカラム数。

rows

新しい画像の行数。

background

この画像で使用する背景色。

format

画像フォーマット。このパラメータは Imagick バージョン 2.0.1 で追加されました。

返り値

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

エラー / 例外

エラー時に ImagickException をスローします。

変更履歴

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

例1 Imagick::newImage() の使用法

新しい画像を作成し、それを表示します。

<?php

$image 
= new Imagick();
$image->newImage(100100, new ImagickPixel('red'));
$image->setImageFormat('png');

header('Content-type: image/png');
echo 
$image;

?>



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

Imagick::newPseudoImage> <Imagick::negateImage
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites