Returns the color depth of the image.
(&self)
| 216 | |
| 217 | /// Returns the color depth of the image. |
| 218 | fn depth(&self) -> usize { unsafe { (*self.buffer()).depth as usize } } |
| 219 | |
| 220 | /// Internal method which returns the length of one row in bytes. |
| 221 | /// |