Creates a new buffer with enough capacity to hold the content of this LCD size for the given `stride``. The returned buffer is of zero size.
(&self, stride: usize)
| 92 | /// Creates a new buffer with enough capacity to hold the content of this LCD size for the given |
| 93 | /// `stride``. The returned buffer is of zero size. |
| 94 | fn new_buffer(&self, stride: usize) -> Vec<u8> { |
| 95 | Vec::with_capacity(self.width * self.height * stride) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | impl From<LcdSize> for SizeInPixels { |
no outgoing calls