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

Method makeImage

shared/java/ImageFilter.java:429–437  ·  view source on GitHub ↗

Create a filter that draws the 'src' portion of image into 'dst' using the given filter quality. The returned image filter evaluates to transparent black if 'image' is null. @param image The image that is output by the filter, subset by 'src' @param src The source pixels sampled into 'dst' @p

(@Nullable Image image, @NotNull Rect src, @NotNull Rect dst, @NotNull SamplingMode mode)

Source from the content-addressed store, hash-verified

427 * @return filter that draws the image
428 */
429 @NotNull @Contract("_, _, _, _ -> new")
430 public static ImageFilter makeImage(@Nullable Image image, @NotNull Rect src, @NotNull Rect dst, @NotNull SamplingMode mode) {
431 try {
432 Stats.onNativeCall();
433 return new ImageFilter(_nMakeImage(Native.getPtr(image), src._left, src._top, src._right, src._bottom, dst._left, dst._top, dst._right, dst._bottom, mode._pack()));
434 } finally {
435 ReferenceUtil.reachabilityFence(image);
436 }
437 }
438
439 /**
440 * Create a filter that draws the image using the given sampling.

Callers 1

drawImageFiltersMethod · 0.95

Calls 7

onNativeCallMethod · 0.95
_nMakeImageMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95
_packMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65

Tested by

no test coverage detected