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

Method getShiftPerPixel

shared/java/ImageInfo.java:186–188  ·  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, 4; left shift to convert pixels to bytes

()

Source from the content-addressed store, hash-verified

184 * @return one of: 0, 1, 2, 3, 4; left shift to convert pixels to bytes
185 */
186 public int getShiftPerPixel() {
187 return _colorInfo.getShiftPerPixel();
188 }
189
190 /**
191 * Returns minimum bytes per row, computed from pixel getWidth() and ColorType, which

Callers 1

isRowBytesValidMethod · 0.95

Calls 1

getShiftPerPixelMethod · 0.65

Tested by

no test coverage detected