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

search for in the

HaruImage::setMaskImage> <HaruImage::getWidth
Last updated: Fri, 03 Oct 2008

view this page in

HaruImage::setColorMask

(PECL haru:0.0.1)

HaruImage::setColorMask画像の色マスクを設定する

説明

bool HaruImage::setColorMask ( int $rmin , int $rmax , int $gmin , int $gmax , int $bmin , int $bmax )

画像の透過色を、RGB 値の範囲を用いて定義します。 この範囲内の色が透過色として表示されます。 画像の色空間は RGB でなければなりません。

パラメータ

rmin

赤の最小値。0 から 255 までの値でなければなりません。

rmax

赤の最大値。0 から 255 までの値でなければなりません。

gmin

緑の最小値。0 から 255 までの値でなければなりません。

gmax

緑の最大値。0 から 255 までの値でなければなりません。

bmin

青の最小値。0 から 255 までの値でなければなりません。

bmax

青の最大値。0 から 255 までの値でなければなりません。

返り値

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

エラー / 例外

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



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

HaruImage::setMaskImage> <HaruImage::getWidth
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites