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

Method getPixelRefOrigin

shared/java/Bitmap.java:632–641  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 1

getSubsetMethod · 0.95

Calls 3

onNativeCallMethod · 0.95
_nGetPixelRefOriginMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected