summaryrefslogtreecommitdiffstats
path: root/tiny_skia/src/engine.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-05-03 13:51:57 +0200
committerLibravatar GitHub <noreply@github.com>2024-05-03 13:51:57 +0200
commita94984d681875146d7af9f568bf8713503c1ca96 (patch)
treec0a4eef3b5ab5fc3450b21b37df99542c178f6e0 /tiny_skia/src/engine.rs
parent38cf87cb45484c7e52ddf775fb3abd7edbecc652 (diff)
parentafb4cb99b92a196bf4dd15a09a8f9bd191293fdd (diff)
downloadiced-a94984d681875146d7af9f568bf8713503c1ca96.tar.gz
iced-a94984d681875146d7af9f568bf8713503c1ca96.tar.bz2
iced-a94984d681875146d7af9f568bf8713503c1ca96.zip
Merge pull request #2424 from iced-rs/feature/image-opacity
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,