Fill color on specific portion of image?

前端 未结 4 1466
北海茫月
北海茫月 2021-01-30 18:32

I want to fill specific color on specific area of an image.

EX:

\"enter

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 18:54

    Use the Github library below. The post uses the flood fill algorithm : UIImageScanlineFloodfill

    Objective C description : ObjFloodFill

    If you want to look at detailed explanation of the algorithm : Recursion Explained with the Flood Fill Algorithm (and Zombies and Cats)

    few of the other tutorials in other languages : Lode's Computer Graphics Tutorial : Flood Fill

提交回复
热议问题