How to flood fill with Color of pattern image in swift?
Asked Answered
C

1

6
  • I have achieved to flood fill on the close boundary with solid color.
  • Now I am trying to fill close boundary with UIColor but it is pattern image color (Pattern color).
  • I also try to get points of close area where i tap and fill that area with use of bezier path, but it took too much time to get an array of close boundary area points.
  • Please help me to achieve to fill pattern on UIImage object to specific close boundary area.
Cloakanddagger answered 6/2, 2020 at 6:58 Comment(2)
Can you elaborate more? you want the coding or the algorithm? Can you share a sample image?Shortchange
Sure, i have A clipart, i wanted to fill any specific area with close i.e with black border, tap on that area and that area should be fill with pattern, like flood fillCloakanddagger
C
-1

Did you try:

let patternColor = UIImage(patternImage: <your UIImage>)
Calondra answered 13/2, 2020 at 1:32 Comment(1)
This is not an answer, what i am looking for, i mentioned i wanted to fill pattern on UIImage object to specific close boundary area.Cloakanddagger

© 2022 - 2024 — McMap. All rights reserved.