python - Reflect the QPixmap -


i have object qpixmap, how reflection without qimage? 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 able use qpixmap's transformed() (see this), using scale transform (a scale of (1,-1) should trick think). i'm assuming functionality available in pyqt. don't use myself.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -