Ver código fonte

Add smooth transform render hint

Michael Pitidis 13 anos atrás
pai
commit
8fa061060b
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      canvas.py

+ 1 - 0
canvas.py

@@ -239,6 +239,7 @@ class Canvas(QWidget):
         p = QPainter()
         p.begin(self)
         p.setRenderHint(QPainter.Antialiasing)
+        p.setRenderHint(QPainter.SmoothPixmapTransform)
 
         p.scale(self.scale, self.scale)
         p.translate(self.offsetToCenter())