|
|
@ -70,6 +70,14 @@ impl<T> Bitmap<T> where T: Clone + Default { |
|
|
|
pub fn lines(&self) -> Chunks<T> {
|
|
|
|
self.data.chunks(self.width)
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn raw(&self) -> &[T] {
|
|
|
|
&self.data
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn into_raw(self) -> Vec<T> {
|
|
|
|
self.data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> Buffer2d for Bitmap<T> where T: Clone {
|
|
|
|