Returns number of bytes per pixel required by ColorType. Returns zero if getColorType() is ColorType#UNKNOWN. @return bytes in pixel @see https://fiddle.skia.org/c/@ImageInfo_bytesPerPixel
()
| 40 | * @see <a href="https://fiddle.skia.org/c/@ImageInfo_bytesPerPixel">https://fiddle.skia.org/c/@ImageInfo_bytesPerPixel</a> |
| 41 | */ |
| 42 | public int getBytesPerPixel() { |
| 43 | return _colorType.getBytesPerPixel(); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Returns bit shift converting row bytes to row pixels. |
nothing calls this directly
no test coverage detected