Take the 2-minute tour ×  I m trying to create a effect where
the image is not visible after a specified area.. Example: Like
a rabbit in a hole..when it goes under a hole,its body should
not be visible slowly..  share|improve this question add comment
3 Answers  up vote 1 down vote accepted  There are two different
ways to composite images with selective transparency: you can
use the alpha channel as described in zapl’s answer, or you can
clip your drawing of each layer with a Path or a Region—see the
clipxxx calls you can use when drawing into a Canvas.
share|improve this answer add comment  You can hide regions of
images if you layer multiple images with transparent regions
Image shows bunny on the left, the right side is the view from
the side. You need three images (the brown, red and grey one),
the part that is not brown/red/grey would be transpararent.
share|improve this answer add comment  anyway thanks for the tip
to @zapl and lawrence .. i used the clip rectangle for the
canvas and it worked pe