8package org.skia.jetskidemo.samples;
10import android.content.res.Resources;
12import org.
skia.jetski.Canvas;
13import org.skia.jetski.Image;
14import org.skia.jetski.Paint;
15import org.skia.jetski.SamplingOptions;
16import org.skia.jetski.Shader;
17import org.skia.jetski.TileMode;
29 }
catch (Exception
e) {}
32 public void render(
Canvas canvas,
long t,
float left,
float top,
float right,
float bottom) {
33 canvas.
drawRect(left, top, right, bottom, mPaint);
void drawRect(float left, float top, float right, float bottom, Paint paint)
static Image fromStream(InputStream encodedStream)
Paint setShader(@Nullable Shader shader)
ImageShaderSample(Resources res, int resId)
void render(Canvas canvas, long t, float left, float top, float right, float bottom)
sk_sp< const SkImage > image