pub fn to_owned(&self) -> image::ImageBuffer<image::Rgba<u8>, Vec<u8>> {
        let vec = self.as_flat_samples().as_slice().to_vec();
        let (width, height) = self.dimensions();
        image::ImageBuffer::from_raw(width, height, vec)
            .expect("image buffer dimensions do not match vec len")
    }
/// Convert the mapped image buffer to an owned buffer.
Convert the mapped image buffer to an owned buffer.
Convert the mapped image buffer to an owned buffer .
pub fn to_owned(&self) -> image::ImageBuffer<image::Rgba<u8>, Vec<u8>> {
        let vec = self.as_flat_samples().as_slice().to_vec();
        let (width, height) = self.dimensions();
        image::ImageBuffer::from_raw(width, height, vec)
            .expect("image buffer dimensions do not match vec len")
    }
pub fn to_owned ( & self ) -> image :: ImageBuffer < image :: Rgba < u8 > , Vec < u8 > > { let vec = self . as_flat_samples ( ) . as_slice ( ) . to_vec ( ) ; let ( width , height ) = self . dimensions ( ) ; image :: ImageBuffer :: from_raw ( width , height , vec ) . expect ( " " ) }
Convert the mapped image buffer to an owned buffer.
Convert the mapped image buffer to an owned buffer .
&self
&self