Android clipPath - fill type
<p>I have two Bitmaps one over another. I want to perform clipPath over the later one (the foreground) so that the background image gets visible.</p>

<p>so I do:</p>

<pre><code>  protected void onDraw(Canvas canvas) {
        canvas.drawBitmap(backgroundBitmap, 0, 0, mBitmapPaint);

        canvas.save();
        canvas.clipPath(clipPath, Region.Op.XOR);
        canvas.drawBitmap(foregroundBitmap, 0, 0, paint);
        canvas.restore();
    }
</code></pre>

<p>The clipping is ok but the Path is not. I get something like an Arc and I want to get Path clip only in the area where my finger passed. Sort of erasing for the upper Bitmap so that the lower one gets visible at the parts where my finger passed.</p>

<p>Thanks</p>
