8package org.skia.jetski;
10import androidx.annotation.NonNull;
11import androidx.annotation.Nullable;
14 private long mNativeInstance;
17 mNativeInstance = native_instance;
32 float surfaceScale,
float kd, @Nullable
ImageFilter input) {
38 surfaceScale, kd, nativeInput));
52 float left,
float top,
float right,
float bottom,
59 left, top, right, bottom, nativeInput));
73 float sigmaX,
float sigmaY,
79 return new ImageFilter(nDropShadow(
dx, dy, sigmaX, sigmaY, c.
r(), c.
g(), c.
b(), nativeInput));
84 long nativeBackground = 0;
85 long nativeForeground = 0;
86 if (background !=
null) {
89 if (foreground !=
null) {
90 nativeForeground = foreground.getNativeInstance();
103 nRelease(mNativeInstance);
114 private static native
void nRelease(
long nativeInstance);
115 private static native
long nDistantLitDiffuse(
float x,
float y,
float z,
116 float r,
float g,
float b,
117 float surfaceScale,
float kd,
119 private static native
long nBlur(
float sigmaX,
float sigmaY,
int tileMode,
120 float l,
float t,
float r,
float b,
long native_input);
121 private static native
long nDropShadow(
float dx,
float dy,
float sigmaX,
float sigmaY,
122 float r,
float g,
float b,
long native_input);
123 private static native
long nBlend(
int blendMode,
long native_background,
long native_foreground);
124 private static native
long nImage(
long native_image);
static ImageFilter distantLitDiffuse(float x, float y, float z, Color c, float surfaceScale, float kd, @Nullable ImageFilter input)
static ImageFilter dropShadow(float dx, float dy, float sigmaX, float sigmaY, Color c, @Nullable ImageFilter input)
static ImageFilter image(@NonNull Image image)
static ImageFilter blur(float sigmaX, float sigmaY, TileMode tileMode, float left, float top, float right, float bottom, @Nullable ImageFilter input)
static ImageFilter blend(BlendMode blendMode, @Nullable ImageFilter background, @Nullable ImageFilter foreground)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx