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

Method getPixelRefOrigin

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

604 * @see <a href="https://fiddle.skia.org/c/@Bitmap_pixelRefOrigin">https://fiddle.skia.org/c/@Bitmap_pixelRefOrigin</a>
605 */
606 @NotNull
607 public IPoint getPixelRefOrigin() {
608 try {
609 Stats.onNativeCall();
610 long res = _nGetPixelRefOrigin(_ptr);
611 return new IPoint((int) (res & 0xFFFFFFFF), (int) (res >>> 32));
612 } finally {
613 Reference.reachabilityFence(this);
614 }
615 }
616
617 /**
618 * <p>Replaces pixelRef and origin in Bitmap. dx and dy specify the offset

Callers 1

getSubsetMethod · 0.95

Calls 2

onNativeCallMethod · 0.95
_nGetPixelRefOriginMethod · 0.95

Tested by

no test coverage detected