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

Method makeMatrixTransform

shared/java/ImageFilter.java:529–537  ·  view source on GitHub ↗

Create a filter that transforms the input image by 'matrix'. This matrix transforms the local space, which means it effectively happens prior to any transformation coming from the Canvas initiating the filtering. @param matrix The matrix to apply to the original content @param mode How the imag

(@NotNull Matrix33 matrix, @NotNull SamplingMode mode, @Nullable ImageFilter input)

Source from the content-addressed store, hash-verified

527 * @return filter that transforms the input
528 */
529 @NotNull @Contract("_, _, _ -> new")
530 public static ImageFilter makeMatrixTransform(@NotNull Matrix33 matrix, @NotNull SamplingMode mode, @Nullable ImageFilter input) {
531 try {
532 Stats.onNativeCall();
533 return new ImageFilter(_nMakeMatrixTransform(matrix.getMat(), mode._pack(), Native.getPtr(input)));
534 } finally {
535 ReferenceUtil.reachabilityFence(input);
536 }
537 }
538
539 /**
540 * Create a filter that merges the filter array together by drawing their results in order

Callers

nothing calls this directly

Calls 5

onNativeCallMethod · 0.95
_nMakeMatrixTransformMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95
_packMethod · 0.65

Tested by

no test coverage detected