scale with SmoothTransformation

This commit is contained in:
dries.k
2022-08-28 16:11:18 +02:00
parent dc81f443aa
commit a53ff4cee2

View File

@@ -24,7 +24,8 @@ class ImagePopup(QtWidgets.QLabel):
pixmap = QtGui.QPixmap(filename).scaled(
settings.value("ImagePopup/w", type=int),
settings.value("ImagePopup/h", type=int),
QtCore.Qt.AspectRatioMode.KeepAspectRatio,
aspectRatioMode=QtCore.Qt.AspectRatioMode.KeepAspectRatio,
transformMode=QtCore.Qt.TransformationMode.SmoothTransformation
)
self.setPixmap(pixmap)