def alpha_composite(im1, im2):
 im1.load()
 im2.load()
 return im1._new(core.alpha_composite(im1.im, im2.im))

def alpha_composite ( im1 , im2 ) : im1 . load ( ) im2 . load ( ) return im1 . _new ( core . alpha_composite ( im1 . im , im2 . im ) )
alpha composite im2 over im1 .