MCPcopy Create free account
hub / github.com/HumbleUI/Skija / getBytesPerPixel

Method getBytesPerPixel

shared/java/IHasImageInfo.java:59–59  ·  view source on GitHub ↗

Returns number of bytes per pixel required by ColorType. Returns zero if colorType is ColorType#UNKNOWN. @return bytes in pixel

()

Source from the content-addressed store, hash-verified

57 * @return bytes in pixel
58 */
59 default int getBytesPerPixel() {
60 return getImageInfo().getBytesPerPixel();
61 }
62

Callers 5

baseMethod · 0.65
colorTypeMethod · 0.65
getBytesPerPixelMethod · 0.65
getBytesPerPixelMethod · 0.65
pixelSortingMethod · 0.65

Implementers 4

Codecshared/java/Codec.java
Bitmapshared/java/Bitmap.java
Pixmapshared/java/Pixmap.java
Imageshared/java/Image.java

Calls

no outgoing calls

Tested by 2

baseMethod · 0.52
colorTypeMethod · 0.52