get("width"); $height = $obj1->get("height"); $image = imagecreatetruecolor($width, $height ); $white = ImageColorAllocate($image,255,255,255); ImageFilledRectangle($image,0,0,$width,$height,$white); for($i=0; $isetPNG(); $url[$i] = $obj->encodeGET(); $img = $this->loadpng($url[$i]); if($img != false){ imagecopy($image, $img, 0, 0, 0, 0, $width, $height); @imagedestroy($img); } else{ $e = new mb_exception("weldMaps2PNG: unable to load image: " . $url[$i]); } } imagepng($image,$filename); imagedestroy($image); } function loadpng ($imgurl) { $obj = new stripRequest($imgurl); $x = new connector($imgurl); // $f = $obj->get("format"); $im = @imagecreatefromstring($x->file); if(!$im){ $im = false; $e = new mb_exception("weldMaps2PNG: unable to load image: ".$imgurl); } return $im; } } ?>