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

Method getPixelRef

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

579 * @return SkPixelRef, or null
580 */
581 @Nullable
582 public PixelRef getPixelRef() {
583 try {
584 Stats.onNativeCall();
585 long res = _nGetPixelRef(_ptr);
586 return res == 0 ? null : new PixelRef(res);
587 } finally {
588 Reference.reachabilityFence(this);
589 }
590 }
591
592 /**
593 * <p>Returns origin of pixels within PixelRef. Bitmap bounds is always contained

Callers 1

drawPixelRefMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nGetPixelRefMethod · 0.95

Tested by

no test coverage detected