[Image-SIG] Flood Color Replace?

Fredrik Lundh fredrik at pythonware.com
Thu Oct 6 22:42:45 CEST 2005

"Ben" wrote:

> I was wondering if PIL had an efficient function that would let me
> replace all pixels of a specific color with another? I could do it
> myself in Python, but this is for a performance-critical application.

all pixels of a specific color in the entire image (=point operation), or
in a given region that already has another color (=flood fill).


More information about the Image-SIG mailing list