Skip to content

Commit

Permalink
Mask, scaled() image
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Laurent committed Dec 25, 2024
1 parent 3628a2a commit dce14e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fmu_manipulation_toolbox/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def set_image(self, filename=None):
base_image = QImage(filename).scaled(self.WIDTH, self.HEIGHT, Qt.AspectRatioMode.IgnoreAspectRatio,
Qt.TransformationMode.SmoothTransformation)
mask_filename = os.path.join(os.path.dirname(__file__), "resources", "mask.png")
mask_image = QImage(mask_filename)
mask_image = QImage(mask_filename).scaled(self.WIDTH, self.HEIGHT, Qt.AspectRatioMode.IgnoreAspectRatio,
Qt.TransformationMode.SmoothTransformation)
rounded_image = QImage(self.WIDTH, self.HEIGHT, QImage.Format.Format_ARGB32)
rounded_image.fill(QColor(0, 0, 0, 0))
painter = QPainter()
Expand Down

0 comments on commit dce14e8

Please sign in to comment.