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

Method getMinRowBytes

shared/java/ImageInfo.java:194–196  ·  view source on GitHub ↗

Returns minimum bytes per row, computed from pixel getWidth() and ColorType, which specifies getBytesPerPixel(). Bitmap maximum value for row bytes must fit in 31 bits.

()

Source from the content-addressed store, hash-verified

192 * in 31 bits.
193 */
194 public long getMinRowBytes() {
195 return _width * getBytesPerPixel();
196 }
197
198 /**
199 * <p>Returns byte offset of pixel from pixel base address.</p>

Callers 5

computeMinByteSizeMethod · 0.95
isRowBytesValidMethod · 0.95
drawPixelsMethod · 0.95
drawMethod · 0.95
allocPixelsMethod · 0.80

Calls 1

getBytesPerPixelMethod · 0.95

Tested by

no test coverage detected