I Solved that according to Shubhadeep Chaudhuri answer in below link :
Somebody ported J. Dunlap's Queue-Linear Flood Fill Algorithm to
android here. I've tried it and it's pretty fast.
I've modified the copyImage() method which originally makes use of a
class called Utilities which the author hasn't provided.
https://stackoverflow.com/a/17426163/401403
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…