Skip to content

Commit fd6548c

Browse files
committed
Remove the original Flood-fill implementation
1 parent befed87 commit fd6548c

File tree

2 files changed

+0
-176
lines changed

2 files changed

+0
-176
lines changed

app/src/main/kotlin/com/simplemobiletools/draw/pro/extensions/Bitmap.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
package com.simplemobiletools.draw.pro.extensions
22

33
import android.graphics.Bitmap
4-
import com.simplemobiletools.draw.pro.helpers.QueueLinearFloodFiller
54
import com.simplemobiletools.draw.pro.helpers.VectorFloodFiller
65
import com.simplemobiletools.draw.pro.models.MyPath
76

8-
fun Bitmap.floodFill(color: Int, x: Int, y: Int, tolerance: Int = 10): Bitmap {
9-
val floodFiller = QueueLinearFloodFiller(this).apply {
10-
fillColor = color
11-
setTolerance(tolerance)
12-
}
13-
14-
floodFiller.floodFill(x, y)
15-
return floodFiller.image!!
16-
}
17-
187
fun Bitmap.vectorFloodFill(color: Int, x: Int, y: Int, tolerance: Int): MyPath {
198
val floodFiller = VectorFloodFiller(this).apply {
209
fillColor = color

app/src/main/kotlin/com/simplemobiletools/draw/pro/helpers/FloodFill.kt

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)