graphics-style 0.3.0

The styles of all graphics elements
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod serder;
use super::*;

///
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Image {
    /// A reference to the image in srgb space.
    shared: Arc<RgbaImage>,
}

impl Image {
    pub fn width(&self) -> u32 {
        self.shared.width()
    }
    pub fn height(&self) -> u32 {
        self.shared.height()
    }
}