changeset 14165 | c24a76f131d6 |
parent 14155 | 6205a5230d23 |
child 14175 | a4c1a2d0ac24 |
14164:0aeea29ef890 | 14165:c24a76f131d6 |
---|---|
28 mask: real_size.to_mask(), |
28 mask: real_size.to_mask(), |
29 } |
29 } |
30 } |
30 } |
31 |
31 |
32 pub fn raw_pixels(&self) -> &[T] { |
32 pub fn raw_pixels(&self) -> &[T] { |
33 &self.pixels.raw_data() |
33 &self.pixels.as_slice() |
34 } |
34 } |
35 |
35 |
36 #[inline] |
36 #[inline] |
37 pub fn width(&self) -> usize { |
37 pub fn width(&self) -> usize { |
38 self.pixels.width() |
38 self.pixels.width() |