summaryrefslogtreecommitdiffstats
path: root/graphics/src/image.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/image.rs')
-rw-r--r--graphics/src/image.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/graphics/src/image.rs b/graphics/src/image.rs
index 083248bf..4fd6998d 100644
--- a/graphics/src/image.rs
+++ b/graphics/src/image.rs
@@ -2,7 +2,7 @@
#[cfg(feature = "image")]
pub use ::image as image_rs;
-use crate::core::{image, svg, Color, Rectangle, Size};
+use crate::core::{image, svg, Color, Radians, Rectangle};
/// A raster or vector image.
#[derive(Debug, Clone, PartialEq)]
@@ -19,10 +19,7 @@ pub enum Image {
bounds: Rectangle,
/// The rotation of the image in radians
- rotation: f32,
-
- /// The scale of the image after rotation
- scale: Size,
+ rotation: Radians,
},
/// A vector image.
Vector {
@@ -36,10 +33,7 @@ pub enum Image {
bounds: Rectangle,
/// The rotation of the image in radians
- rotation: f32,
-
- /// The scale of the image after rotation
- scale: Size,
+ rotation: Radians,
},
}