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