Merge pull request #2334 from DKolter/image-rotation

Adding feature: Image rotation
This commit is contained in:
Héctor Ramón 2024-05-03 07:31:34 +02:00 committed by GitHub
commit 1cefe6be21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 697 additions and 111 deletions

View file

@ -6,8 +6,8 @@ use crate::core::mouse;
use crate::core::renderer;
use crate::core::widget::tree::{self, Tree};
use crate::core::{
Clipboard, Element, Layout, Length, Pixels, Point, Rectangle, Shell, Size,
Vector, Widget,
Clipboard, Element, Layout, Length, Pixels, Point, Radians, Rectangle,
Shell, Size, Vector, Widget,
};
/// A frame that displays an image with the ability to zoom in/out and pan.
@ -341,6 +341,7 @@ where
y: bounds.y,
..Rectangle::with_size(image_size)
},
Radians(0.0),
);
});
});