我有一个对象的QPixmap,如何让他不QImage的写照吗?现在我做QImage的使用(PyQt4中):
tmp_image = QImage("./templates/{type}/{name}.png".format(type=tpl_type, name=tpl_name))
pixmap_reflect = QPixmap().fromImage(tmp_image.mirrored(horizontal=True, vertical=False))
您应该能够使用的QPixmap的transformed()
(see this),使用比例为变换(中的等级(1,-1)应该做的伎俩,我认为)。我假设所有的功能在PyQt的使用。不要使用自己。