Getting and replacing a specific color in an image

Discussion in 'iOS Programming' started by Malin, Jan 5, 2009.

  1. macrumors newbie

    Joined:
    Jan 5, 2009
    #1
    Hey guys,

    I'm looking for a way to dynamically change a random color in an image. I'm trying to do some sort of "fill" effect on an image.

    So, my user can select a vectorized image via the UIImagePicker with only a having only a few colors in it and can then flood fill for example all red with blue.


    I 've been reading some stuff on Quartz and working with filters, but sadly enough with no actual helpfull results :( Anyone here who could help me out or at least guide me in a good direction ?

    Thanks!
     
  2. macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #2
    Have you solved the problem?
     
  3. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    There is no built-in flood fill. You have to write your own.
     

Share This Page