MCPcopy Create free account
hub / github.com/JetBrains/skija / getBytesPerPixel

Method getBytesPerPixel

shared/java/ColorInfo.java:42–44  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

getBytesPerPixelMethod · 0.65

Tested by

no test coverage detected