imagefill
(PHP 3, PHP 4, PHP 5)
imagefill -- 塗り潰し
説明
bool
imagefill ( resource image, int x, int y, int color )
ImageFill()は、画像imageに
おいて座標x, y(左上
が0,0)から色colで領域を塗りつぶします。
例 1. imagefill() の例
<?php
$im = imagecreatetruecolor('example.jpg', 100, 100);
// 背景色を赤にセット $red = imagecolorallocate($im, 255, 0, 0); imagefill($im, 0, 0, $red);
?>
|
|
imagecolorallocate() も参照ください。