graphics - Android Overlay a portion of bitmap on top of another using a clipping path (or any other method) -



graphics - Android Overlay a portion of bitmap on top of another using a clipping path (or any other method) -

android 2.1 or greater

suppose have 2 images same size, 1 donut shape transparency in middle , outside donut.

the other square image same size donut

if overlayed (the donut not visible since square on top of z stack)

what create clipping path or method display portion of square bitmap falls within donut using starting , stopping angle (which alter on time)

so instance show portion of bluish square within donut starting @ 0 degrees , ending @ 40 degrees, 180 , 270 degrees. produce this.

not sure start, have ideas?

haven't tried myself clippath(path path) might looking for. hard part setup right path clipping with.

android graphics path 2d clipping

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -