4

Is there any way to create the magic wand tool just like the one in the photoshop app with an easier approach to "chroma key" stuff? that's very complicated, I have searched a lot and got nothing that I could actually make it to work. Is there any library or an easier approach to achieve this? Any help is highly appreciated.

  • 1
    CGImageCreateWithMaskingColors(yourOriginalCGImage, [0, 0, 255, 255, 0, 0]) to mask the green color – Leo Dabus Feb 14 '16 at 23:37
  • Thanks for the answer, Could you explain a little bit more about it? I'd appreciate. –  Feb 14 '16 at 23:44
  • 1
    That Will return a cgimage after removing the color range in your array. [redMin,redMax,greenMin,greenMax,blueMin,blueMax] – Leo Dabus Feb 14 '16 at 23:46
  • 1
    If You would like to remove black pass all zeros. For white all 255 – Leo Dabus Feb 14 '16 at 23:47
  • and will it work the same way as what get from magic wand? –  Feb 14 '16 at 23:49
  • 1
    To choose a color like a picker you will need to get the pixel color from your view – Leo Dabus Feb 14 '16 at 23:51
  • Did you found the solution for your question?.Because even I am trying to find the answer for this so after lot research I found that we need to use seed fill algorithm but that algorith is filling the colour.If found any help full code or link please let me know. @Connor T – Uttam Jan 18 '17 at 12:10

0 Answers0