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

Method getShiftPerPixel

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

Returns bit shift converting row bytes to row pixels. Returns zero for ColorType#UNKNOWN. @return one of: 0, 1, 2, 3; left shift to convert pixels to bytes

()

Source from the content-addressed store, hash-verified

68 * @return one of: 0, 1, 2, 3; left shift to convert pixels to bytes
69 */
70 default int getShiftPerPixel() {
71 return getImageInfo().getShiftPerPixel();
72 }
73

Callers 4

executeMethod · 0.65
colorTypeMethod · 0.65
getShiftPerPixelMethod · 0.65
getShiftPerPixelMethod · 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

executeMethod · 0.52
colorTypeMethod · 0.52