[Image-SIG] [PIL]how to change the default fill color

Bruce Who bruce.who.hk at gmail.com
Sun Aug 6 03:40:28 CEST 2006


Hi, all,

I'm a newbie to PIL, and is stumped with a issue: I use following
statement to convert a image:

imout = im.transform((500,500),AFFIN,(1,0.5,0,0,0.5,0))

and I find out that some part of 'imout' is filled with black color,
how to make PIL fill the area with other colors or just keep it
transparent by default instead of just with black? I have searched the
web and cannot get any ideas.

I'll appreciate any ideas. Thanks in advance.

Bruce


More information about the Image-SIG mailing list