Internal method which returns the length of one row in bytes. Due to the fact that rows might by aligned the number of bytes might be greater than the width of the image.
(&self)
| 222 | /// Due to the fact that rows might by aligned the number of bytes might |
| 223 | /// be greater than the width of the image. |
| 224 | fn widthstep(&self) -> usize { unsafe { (*self.buffer()).widthstep as usize } } |
| 225 | |
| 226 | /// Returns the number of color components used for this image. |
| 227 | fn channels(&self) -> usize { unsafe { (*self.buffer()).nchannels as usize } } |
no test coverage detected