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

hibernate - How to load global settings frequently used in application in Java -

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

objective c - Ownership modifiers with manual reference counting -