Getting and replacing a specific color in an image

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

  1. Malin macrumors newbie

    Jan 5, 2009
    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 ?

  2. iphonejudy macrumors 6502


    Sep 12, 2008
    Have you solved the problem?
  3. robbieduncan Moderator emeritus


    Jul 24, 2002
    There is no built-in flood fill. You have to write your own.

Share This Page