java - Android Create View of Display -
i trying create view of current display can call following methods create bitmap:
v1.setdrawingcacheenabled(true); current = bitmap.createbitmap(v1.getdrawingcache(), 1686, 136, (631-168), (343-136)); v1.setdrawingcacheenabled(false); to create view tried line
view v1 = mcurrenturlmask.getrootview(); i got error "symbol 'mcurrenturlmask' cannot resolved."
i'm looking create bitmap of section of screen, , thoughts have on issue appreciated.
1
view v1 = mainactivity.this.getwindow().getdecorview();//editted v1.builddrawingcache(); //your rest of code. // bitmap of whole screen. or use viewsnapper
Comments
Post a Comment