Add Filter interfaces for PoissonBlend and PoissonFill

This commit is contained in:
Edwin Jakobs
2020-02-27 16:45:50 +01:00
parent 96bd90e6b9
commit 9cb7ac6644
5 changed files with 68 additions and 10 deletions

View File

@@ -33,11 +33,12 @@ class PoissonFiller(val width: Int, val height: Int, type: ColorType = ColorType
fun destroy() {
preproc.destroy()
combined.destroy()
}
}
/**
* Poison filling as a filter
*/
class PoissonFill : Filter() {
private var filler: PoissonFiller? = null
override fun apply(source: Array<ColorBuffer>, target: Array<ColorBuffer>) {