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
Post a Comment