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