你好,我正在试图结合两个透明的png-24图像,两个大小400宽度,150高度。组合使用Php的2 png-24透明图像
后台: “http://www.fenixflame.net/Background-Zanaris-24.png"][1]
我想覆盖土坯背景图像: [” HTTP ://www.fenixflame.net/Bandos-Slayer-24.png“] [2]
我已经尝试了使用php叠加透明图像,但只有png-8图像。由于图片不能正确呈现,因此无法使用png-8。
编辑:代码我tryed:
$image = imagecreatefrompng("http://www.fenixflame.net/Background-Zanaris-24.png");
$frame = imagecreatefrompng("http://www.fenixflame.net/Bandos-Slayer-24.png");
//
//imagealphablending($frame,true);
//
$insert_x = imagesx($frame);
$insert_y = imagesy($frame);
imagecopymerge($image,$frame,0,0,0,0,$insert_x,$insert_y,100);
//
//# Save the image to a file imagepng($image, '/path/to/save/image.png');
imagepng($image, "/home1/fenixfla/public_html/Images/Signatures/NewImageBG.png");
//
//# Output straight to the browser.
imagepng($image);
//
你在使用什么库? – yoda 2010-12-22 22:58:47
我真的不知道,不是一个PHP的家伙,如果有的话猜猜默认的那个? – Dangerosking 2010-12-22 23:02:17