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

Method getShiftPerPixel

shared/java/ImageInfo.java:185–187  ·  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

183 * @return one of: 0, 1, 2, 3, 4; left shift to convert pixels to bytes
184 */
185 public int getShiftPerPixel() {
186 return _colorInfo.getShiftPerPixel();
187 }
188
189 /**
190 * 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