mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
set render hint for paint image with color
This commit is contained in:
parent
1f2ad7c304
commit
44f6d1c724
1 changed files with 5 additions and 0 deletions
|
|
@ -79,6 +79,11 @@ def paint_image_with_color(image, color):
|
|||
pixmap.fill(QtCore.Qt.transparent)
|
||||
|
||||
painter = QtGui.QPainter(pixmap)
|
||||
painter.setRenderHints(
|
||||
painter.Antialiasing
|
||||
| painter.SmoothPixmapTransform
|
||||
| painter.HighQualityAntialiasing
|
||||
)
|
||||
painter.setClipRegion(alpha_region)
|
||||
painter.setPen(QtCore.Qt.NoPen)
|
||||
painter.setBrush(color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue