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

Method getPixelRef

shared/java/Bitmap.java:607–616  ·  view source on GitHub ↗

Returns PixelRef, which contains: pixel base address; its dimensions; and rowBytes(), the interval from one row to the next. PixelRef may be shared by multiple bitmaps. If PixelRef has not been set, returns null. @return SkPixelRef, or null

()

Source from the content-addressed store, hash-verified

605 * @return SkPixelRef, or null
606 */
607 @Nullable
608 public PixelRef getPixelRef() {
609 try {
610 Stats.onNativeCall();
611 long res = _nGetPixelRef(_ptr);
612 return res == 0 ? null : new PixelRef(res);
613 } finally {
614 ReferenceUtil.reachabilityFence(this);
615 }
616 }
617
618 /**
619 * <p>Returns origin of pixels within PixelRef. Bitmap bounds is always contained

Callers 1

drawPixelRefMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nGetPixelRefMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected