bool MixPicture(char* path1, char* path2, int left,
int top, int right, int bottom, char* resultpath)
{
}
将path2 图片在指定位置合成到path1图片上,保存到resultpath里
高分求实现功能
------解决思路----------------------
void MixPicture(QString source, QString tmpFile, int left, int top, int width, int hight, QString strPath)
{
QPixmap pix(source);
QPixmap tmp(tmpFile);
QPainter paint(&pix);
paint.drawPixmap(left,top,width,hight,tmp);
pix.save(strPath,"jpg");
}
------解决思路----------------------
这么强大,这种方法可以吗?