I have an object QPixmap, how to get his reflection without QImage? Now I do it using 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))
You should be able to use QPixmap's transformed()
(see this), using a scale as the transform (a scale of (1,-1) should do the trick I think). I'm assuming all functionality is available in PyQt. Don't use that myself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With