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

Method getRowBytes

shared/java/Bitmap.java:146–153  ·  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

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

Callers 4

installPixelsMethod · 0.95
readPixelsMethod · 0.95
baseMethod · 0.45
executeMethod · 0.45

Calls 3

onNativeCallMethod · 0.95
_nGetRowBytesMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 2

baseMethod · 0.36
executeMethod · 0.36