PDA

View Full Version : Getting and replacing a specific color in an image




Malin
Jan 5, 2009, 09:42 AM
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!



iphonejudy
Apr 20, 2009, 06:08 AM
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!

Have you solved the problem?

robbieduncan
Jun 1, 2009, 03:09 AM
There is no built-in flood fill. You have to write your own.