Masking is not avaliable after the QT6 upgrade, this does a kind of primitive masking by placing a rectangle with a circular hole in it over the image.

CURA-9104
This commit is contained in:
j.delarago 2022-04-11 14:10:27 +02:00
parent d1d45b4f41
commit 94e5a4e1db
5 changed files with 27 additions and 20 deletions

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M 0 0. L 0 16 L 16 16 L 16.101562 0 L 8 0 A 8 8 0 0 1 16 8 A 8 8 0 0 1 8 16 A 8 8 0 0 1 0 8 A 8 8 0 0 1 8 0 L 0 0 z " />
</svg>

After

Width:  |  Height:  |  Size: 290 B

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<svg width="50" height="50">
<circle cx="25" cy="25" r="23.74" stroke-width="2.5" />
<circle cx="25" cy="25" r="23.74" fill="none" stroke="black" stroke-width="2.5" />
</svg>

Before

Width:  |  Height:  |  Size: 135 B

After

Width:  |  Height:  |  Size: 162 B

Before After
Before After