From 952d3ce3da60ad053157a4d060befaafed0d8dad Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 4 Jan 2004 13:27:26 +0000 Subject: - new icons and icon types for sysmaps (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1135 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/map.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontends/php/map.php') diff --git a/frontends/php/map.php b/frontends/php/map.php index 698f5f89..e1b8c507 100644 --- a/frontends/php/map.php +++ b/frontends/php/map.php @@ -40,7 +40,7 @@ check_authorisation(); - $im = imagecreate($width,$height); + $im = imagecreatetruecolor($width,$height); $red=ImageColorAllocate($im,255,0,0); $darkred=ImageColorAllocate($im,150,0,0); @@ -184,6 +184,8 @@ $img=$icons[$icon]; +// imagecolortransparent ($img, imagecolorat ($img, 0, 0)); +// imagecolortransparent ($img, 0, 0, 0); ImageCopy($im,$img,$x,$y,0,0,ImageSX($img),ImageSY($img)); $x1=$x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2; -- cgit