diff options
author | 2024-05-02 13:15:17 +0200 | |
---|---|---|
committer | 2024-05-02 17:27:45 +0200 | |
commit | 09a6bcfffc24f5abdc8709403bab7ae1e01563f1 (patch) | |
tree | 8a09792cd01cb56a3a5d11184a60009f8a22a85f /renderer | |
parent | aae8e4f5cfabfc3725ac938023fa29a6737a380c (diff) | |
download | iced-09a6bcfffc24f5abdc8709403bab7ae1e01563f1.tar.gz iced-09a6bcfffc24f5abdc8709403bab7ae1e01563f1.tar.bz2 iced-09a6bcfffc24f5abdc8709403bab7ae1e01563f1.zip |
Add `Image` rotation support
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/src/fallback.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/renderer/src/fallback.rs b/renderer/src/fallback.rs index 5f69b420..37e6ac43 100644 --- a/renderer/src/fallback.rs +++ b/renderer/src/fallback.rs @@ -154,11 +154,13 @@ where handle: Self::Handle, filter_method: image::FilterMethod, bounds: Rectangle, + rotation: f32, + scale: Size, ) { delegate!( self, renderer, - renderer.draw_image(handle, filter_method, bounds) + renderer.draw_image(handle, filter_method, bounds, rotation, scale) ); } } @@ -177,8 +179,14 @@ where handle: svg::Handle, color: Option<Color>, bounds: Rectangle, + rotation: f32, + scale: Size, ) { - delegate!(self, renderer, renderer.draw_svg(handle, color, bounds)); + delegate!( + self, + renderer, + renderer.draw_svg(handle, color, bounds, rotation, scale) + ); } } |