changeset 14160 | c24a76f131d6 |
parent 14150 | 6205a5230d23 |
child 14170 | a4c1a2d0ac24 |
14159:0aeea29ef890 | 14160: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() |