diff app/src/main/java/com/bartsent/simpleresizer/lib/ScalingKernel.kt @ 6:e8059b166de1

Lanczos works, but is painfully slow.
author David Barts <n5jrn@me.com>
date Tue, 16 Feb 2021 17:29:52 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/src/main/java/com/bartsent/simpleresizer/lib/ScalingKernel.kt	Tue Feb 16 17:29:52 2021 -0800
@@ -0,0 +1,8 @@
+package com.bartsent.simpleresizer.lib
+
+import android.graphics.Bitmap
+
+interface ScalingKernel {
+    val size: Double
+    fun weight(x: Double): Double
+}