android Paint.setShadowLayer() vs Canvas.drawbitmap() problems
<p>I use the following code to draw a bitmap during onDraw of a custom View</p>

<pre><code>Paint p = new Paint(Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG);
p.setShadowLayer(3,3,3,0xff000000);
Bitmap bmp = BitmapFactory.decodeResource(some drawable jpg);
canvas.drawBitmap(bmp,null,new Rect(blah blah),p);
</code></pre>

<p>and the shadow looks funny.  What do I mean funny?  I mean that I get a different shadow then if I was calling canvas.drawRect().  It looks sorta like the android shadow code is treating the bitmap as an alpha channel or something.</p>

<p>have tried adding p.setColor(0xff000000); and p.setStyle(Paint.Style.FILL); but not difference.</p>

<p>I guess I could drawRect with shadow on, then drawBitmap with shadow off, but that seems silly as it would be rendering pixels twice.</p>
