[Image-SIG] help with paste

Jim Tittsler jwt-python@dskk.co.jp
Sat, 24 Jun 2000 14:15:24 +0900

On Fri, Jun 23, 2000 at 02:43:11PM -0400, Gregory Haley wrote:
> size1 = 300
> im2 = Image.new('RGB', (size1, size1))
> im3 = Image.new('RGB', (size0, size0))
> draw = ImageDraw.ImageDraw(im3)
> im = im1.paste(im2, (500, 500), im3)

It looks like you are trying to paste im2 into im1, using im3 as a mask.
Does size0==size1?  I believe the mask needs to be the same size as the
image it applies to, so in this case im2 and im3 need to be the same size.
(But your im3 would appear to make a pretty boring mask.  :-)

Jim Tittsler, Tokyo
Python Starship     http://starship.python.net/crew/jwt/