Returns origin of pixels within PixelRef. Bitmap bounds is always contained by PixelRef bounds, which may be the same size or larger. Multiple Bitmap can share the same PixelRef, where each Bitmap has different bounds. The returned origin added to Bitmap dimensions equals or is smaller th
()
| 630 | * @see <a href="https://fiddle.skia.org/c/@Bitmap_pixelRefOrigin">https://fiddle.skia.org/c/@Bitmap_pixelRefOrigin</a> |
| 631 | */ |
| 632 | @NotNull |
| 633 | public IPoint getPixelRefOrigin() { |
| 634 | try { |
| 635 | Stats.onNativeCall(); |
| 636 | long res = _nGetPixelRefOrigin(_ptr); |
| 637 | return new IPoint((int) (res & 0xFFFFFFFF), (int) (res >>> 32)); |
| 638 | } finally { |
| 639 | ReferenceUtil.reachabilityFence(this); |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | /** |
| 644 | * <p>Replaces pixelRef and origin in Bitmap. dx and dy specify the offset |
no test coverage detected