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
()
| 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 |
no test coverage detected