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

Method getRowBytes

shared/java/Bitmap.java:145–152  ·  view source on GitHub ↗

Returns row bytes, the interval from one pixel row to the next. Row bytes is at least as large as: getWidth() getBytesPerPixel(). Returns zero if getColorType() is ColorType#UNKNOWN, or if row bytes supplied to #setImageInfo(ImageInfo) is not large enough to hold a row of pixels. @

()

Source from the content-addressed store, hash-verified

143 * @return byte length of pixel row
144 */
145 public long getRowBytes() {
146 try {
147 Stats.onNativeCall();
148 return _nGetRowBytes(_ptr);
149 } finally {
150 Reference.reachabilityFence(this);
151 }
152 }
153
154 /**
155 * <p>Sets alpha type, if argument is compatible with current color type.

Callers 3

installPixelsMethod · 0.95
readPixelsMethod · 0.95
executeMethod · 0.45

Calls 2

onNativeCallMethod · 0.95
_nGetRowBytesMethod · 0.95

Tested by 1

executeMethod · 0.36