Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/333ggg/www/akisame/wpcore/wp-includes/pomo/plural-forms.php on line 210
Image_Graph の 色指定
Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/333ggg/www/akisame/wpcore/wp-content/plugins/ultimate_ga_1.6.0.php on line 524

Image_Graph の 色指定


Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/333ggg/www/akisame/wpcore/wp-content/plugins/ultimate_ga_1.6.0.php on line 524

PearのImage_Graph調べた。
どこを見ても red だのgreen だのでしか書いてなかったので、RGBで指定できないのかと思ってたけどそんなことはない。
以下いずれも可能。

$obj =& Image_Graph::factory(‘Image_Graph_Fill_Array’);
$obj->addColor(‘red’);
$obj->addColor(‘red@0.3’);
$obj->addColor(‘#00ff33);

@はアルファ値と言って透明度を調整するらしい。(明るくなる)

Comments are closed.


Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/333ggg/www/akisame/wpcore/wp-content/plugins/ultimate_ga_1.6.0.php on line 524

Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/333ggg/www/akisame/wpcore/wp-content/plugins/ultimate_ga_1.6.0.php on line 524