MCPcopy Index your code
hub / github.com/HumbleUI/Skija / makeMagnifier

Method makeMagnifier

shared/java/ImageFilter.java:462–470  ·  view source on GitHub ↗

Create a filter that fills 'lensBounds' with a magnification of the input. @param r The outer bounds of the magnifier effect @param zoomAmount The amount of magnification applied to the input image @param inset The size or width of the fish-eye distortion around the magnified conte

(@NotNull Rect r, float zoomAmount, float inset, @NotNull SamplingMode mode, @Nullable ImageFilter input, @Nullable Rect crop)

Source from the content-addressed store, hash-verified

460 * @return filter that magnifies the input
461 */
462 @NotNull @Contract("_, _, _, _, _, _ -> new")
463 public static ImageFilter makeMagnifier(@NotNull Rect r, float zoomAmount, float inset, @NotNull SamplingMode mode, @Nullable ImageFilter input, @Nullable Rect crop) {
464 try {
465 Stats.onNativeCall();
466 return new ImageFilter(_nMakeMagnifier(r._left, r._top, r._right, r._bottom, zoomAmount, inset, mode._pack(), Native.getPtr(input), crop));
467 } finally {
468 ReferenceUtil.reachabilityFence(input);
469 }
470 }
471
472 @NotNull @Contract("_, _, _, _, _, _ -> new")
473 public static ImageFilter makeMagnifier(@NotNull Rect r, float zoomAmount, float inset, @NotNull SamplingMode mode, @Nullable ImageFilter input, @Nullable IRect crop) {

Callers 1

drawImageFiltersMethod · 0.95

Calls 5

onNativeCallMethod · 0.95
_nMakeMagnifierMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95
_packMethod · 0.65

Tested by

no test coverage detected