各位大爷们,怎么是裁剪的PNG背景是透明的呢?

浏览:1304 发布日期:2013/07/25 分类:求助交流

裁剪LOGO出来的是这样的……
网上找到的代码是这样的:            imagesavealpha($this->_img,true);
            $thumb = imagecreatetruecolor($this->_width,$this->_height);
            imagealphablending($thumb,false);
            imagesavealpha($thumb,true);
            if(imagecopyresampled($thumb,$this->_img,0,0,0,0,300,300,300,300)){
                $ret=imagepng($thumb,$fname);
            }
但是没有效果。
最佳答案
评论( 相关
后面还有条评论,点击查看>>