android - Is there a way to get a pixel from a View object -


i'm working in simple game, , having problems on collision detecting. i've found on question method called isfilled

    private static boolean isfilled(int pixel) {       return pixel != color.transparent;     } 

the argument int pixel comes bitmap.getpixel(x,y) there equivalent method bitmap.getpixel(x,y) view?

you can use view.draw(canvas c) , draw view canvas created bitmap using canvas(bitmap b).


Comments

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -