summaryrefslogtreecommitdiffstats
path: root/tiny_skia/src/engine.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-03 13:25:58 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-03 13:25:58 +0200
commitfa9e1d96ea1924b51749b775ea0e67e69bc8a305 (patch)
tree20cb13d6e3074569a15a16c8b0d261b1875a2045 /tiny_skia/src/engine.rs
parent38cf87cb45484c7e52ddf775fb3abd7edbecc652 (diff)
downloadiced-fa9e1d96ea1924b51749b775ea0e67e69bc8a305.tar.gz
iced-fa9e1d96ea1924b51749b775ea0e67e69bc8a305.tar.bz2
iced-fa9e1d96ea1924b51749b775ea0e67e69bc8a305.zip
Introduce dynamic `opacity` support for `Image` and `Svg`
Diffstat (limited to 'tiny_skia/src/engine.rs')
-rw-r--r--tiny_skia/src/engine.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tiny_skia/src/engine.rs b/tiny_skia/src/engine.rs
index 544ff614..028b304f 100644
--- a/tiny_skia/src/engine.rs
+++ b/tiny_skia/src/engine.rs
@@ -551,6 +551,7 @@ impl Engine {
filter_method,
bounds,
rotation,
+ opacity,
} => {
let physical_bounds = *bounds * _transformation;
@@ -574,6 +575,7 @@ impl Engine {
handle,
*filter_method,
*bounds,
+ *opacity,
_pixels,
transform,
clip_mask,
@@ -585,6 +587,7 @@ impl Engine {
color,
bounds,
rotation,
+ opacity,
} => {
let physical_bounds = *bounds * _transformation;
@@ -608,6 +611,7 @@ impl Engine {
handle,
*color,
physical_bounds,
+ *opacity,
_pixels,
transform,
clip_mask,