I'm trying to draw using the experimental **RGBA-on-RGB interface. I can't seem to get it to work.
from PIL import Image, ImageDraw ml = Image.new("RGBA", (200,200)) D = ImageDraw.Draw(ml, "RGBA") red = (0xff, 0x00, 0x00, 0xA9) green = (0x00, 0xbf, 0x00, 0x83) D.polygon([(40, 40), (40, 100), (100, 100), (100, 40)], fill=red) D.polygon([(20, 20), (20, 80), (80, 80), (80, 20)], fill=green) ml.save("test.png", "PNG") Results in the attached image. The red polygon doesn't show through beneath the green one. I'd appreciate any pointers on this. It seems fairly simple. - uman
<<attachment: test.png>>
_______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig