<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I found the problem, thanks to the code you posted. My destination
image was "RGBA", and I was viewing it in a web browser. Most of the
image had an opaque alpha channel, but where I had drawn the drop
shadows, it had the shadow's alpha values, so the white of the browser
was showing through. This isn't the most intuitive way for alpha
drawing to work. I guess I could see it both ways: if the destination
is opaque, it should stay opaque, or drawing pixels onto a destination
takes all the values from the source.<br>
<br>
In any case, changing my destination image from RGBA to RGB solved the
problem.<br>
<br>
Thanks.<br>
<br>
--Ned.<br>
<br>
Fredrik Lundh wrote:
<blockquote cite="middvpv1t$93f$1@sea.gmane.org" type="cite">
<blockquote type="cite">
<pre wrap="">are you 100% sure that the source pixels are black ?
</pre>
</blockquote>
<pre wrap=""><!---->
a quick way to find out is to do
print shadow.convert("RGB").getcolors()
</F>
_______________________________________________
Image-SIG maillist - <a class="moz-txt-link-abbreviated" href="mailto:Image-SIG@python.org">Image-SIG@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/image-sig">http://mail.python.org/mailman/listinfo/image-sig</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ned Batchelder, <a class="moz-txt-link-freetext" href="http://nedbatchelder.com">http://nedbatchelder.com</a>
</pre>
</body>
</html>