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

Method getBytesPerPixel

shared/java/ImageInfo.java:176–178  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

174 * @return bytes in pixel
175 */
176 public int getBytesPerPixel() {
177 return _colorInfo.getBytesPerPixel();
178 }
179
180 /**
181 * Returns bit shift converting row bytes to row pixels.

Callers 3

getMinRowBytesMethod · 0.95
computeByteSizeMethod · 0.95
drawPixelsMethod · 0.95

Calls 1

getBytesPerPixelMethod · 0.65

Tested by

no test coverage detected