[PYTHON IMAGE-SIG] The Image.new() function doesn't initialize the new image
by Fredrik Lundh other posts by this author
Jan 17 1997 9:16PM messages near this date
[PYTHON IMAGE-SIG] The crop method doesn't work properly for palette images
|
Re: [PYTHON IMAGE-SIG] The Image.new() function doesn't initialize the new image
On page 15 in the PIL handbook, the following is said about the
Image.new function:
new( mode, size ) or new( mode, size, colour ) creates a new image
with the given mode and size. Size is given as a 2-tuple. If colour is
not given, the image is initialised to solid black.
The last sentence is not true; if the colour is not given, the image
is not initialised at all.
Now, the only problem is whether I should change the documentation or
the implementation. Opinions?
Regards /F
_______________
IMAGE-SIG - SIG on Image Processing with Python
send messages to: image-sig@[...].org
administrivia to: image-sig-request@[...].org
_______________
Thread:
Fredrik Lundh
Guido van Rossum
Fred L. Drake
Fredrik Lundh
|