graphics_style/styles/tex_image/mod.rs
1mod serder;
2use super::*;
3
4///
5#[derive(Debug, Clone, PartialEq, Eq, Hash)]
6pub struct Image {
7 /// A reference to the image in srgb space.
8 shared: Arc<RgbaImage>,
9}
10
11impl Image {
12 pub fn width(&self) -> u32 {
13 self.shared.width()
14 }
15 pub fn height(&self) -> u32 {
16 self.shared.height()
17 }
18}