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)
| 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 |
nothing calls this directly
no test coverage detected