mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
31 lines
2 KiB
Java
31 lines
2 KiB
Java
|
package androidx.compose.ui.graphics;
|
||
|
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: AndroidCanvas.android.kt */
|
||
|
@Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\u001a\u0010\u0010\u0007\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\tH\u0000\u001a\u000e\u0010\n\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\u0001\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u0019\u0010\u0002\u001a\u00060\u0001j\u0002`\u0003*\u00020\u00048F¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006*\n\u0010\f\"\u00020\u00012\u00020\u0001¨\u0006\r"}, d2 = {"EmptyCanvas", "Landroid/graphics/Canvas;", "nativeCanvas", "Landroidx/compose/ui/graphics/NativeCanvas;", "Landroidx/compose/ui/graphics/Canvas;", "getNativeCanvas", "(Landroidx/compose/ui/graphics/Canvas;)Landroid/graphics/Canvas;", "ActualCanvas", "image", "Landroidx/compose/ui/graphics/ImageBitmap;", "Canvas", "c", "NativeCanvas", "ui-graphics_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class AndroidCanvas_androidKt {
|
||
|
private static final android.graphics.Canvas EmptyCanvas = new android.graphics.Canvas();
|
||
|
|
||
|
public static final Canvas ActualCanvas(ImageBitmap image) {
|
||
|
Intrinsics.checkNotNullParameter(image, "image");
|
||
|
AndroidCanvas androidCanvas = new AndroidCanvas();
|
||
|
androidCanvas.setInternalCanvas(new android.graphics.Canvas(AndroidImageBitmap_androidKt.asAndroidBitmap(image)));
|
||
|
return androidCanvas;
|
||
|
}
|
||
|
|
||
|
public static final Canvas Canvas(android.graphics.Canvas c) {
|
||
|
Intrinsics.checkNotNullParameter(c, "c");
|
||
|
AndroidCanvas androidCanvas = new AndroidCanvas();
|
||
|
androidCanvas.setInternalCanvas(c);
|
||
|
return androidCanvas;
|
||
|
}
|
||
|
|
||
|
public static final android.graphics.Canvas getNativeCanvas(Canvas canvas) {
|
||
|
Intrinsics.checkNotNullParameter(canvas, "<this>");
|
||
|
return ((AndroidCanvas) canvas).getInternalCanvas();
|
||
|
}
|
||
|
}
|