Fill the draw buffer with one RGBA colour (little-endian word).
(&mut self, color: u32)
| 67 | self.version |
| 68 | } |
| 69 | |
| 70 | /// Both pixel planes (front then back) as one image; the bulk term of a |
| 71 | /// device snapshot, delta-compressed by the session like RAM. |
| 72 | pub fn plane_image(&self) -> Vec<u8> { |
| 73 | let mut buf = Vec::with_capacity(self.front.len() + self.back.len()); |
| 74 | buf.extend_from_slice(&self.front); |
| 75 | buf.extend_from_slice(&self.back); |
| 76 | buf |
| 77 | } |
| 78 |
no test coverage detected