因为gd里面没有相关的函数,找了一个bmp.php的,但是生成的新bmp图片只是一个色块,没有图像。
有谁做过类似的,请指导一下。test.phprequire_once('bmp.php');$sur_pic = "00100966.bmp";
$tem_pic = imagecreatefrombmp($sur_pic);
$newimg = imagecreatetruecolor(100,200);
imagecopyresampled($newimg, $tem_pic, 0, 0, 0, 0, 100,200, 100, 200);
imagebmp($newimg,"2.bmp");
imagecreatefrombmp()与imagebmp()函数是bmp.php里面的