python imaging library: Can I simply fill my image with one color?

Viewed 20091

I googled, checked the documentation of PIL library and much more, but I couldn't find the answer to my simple question: how can I fill an existing image with a desired color?

(I am using from PIL import Image and from PIL import ImageDraw)

This command creates a new image filled with a desired color

image = Image.new("RGB", (self.width, self.height), (200, 200, 200))

But I would like to reuse the same image without the need of calling "new" every time

2 Answers
Related