Android, Canvas, draw image
How wo开发者_Python百科uld I draw an image on canvas and position it based on x/Y co-ords? Also, is it possible to check if an image is drawn at those co-ords?
Thanks,
Use the BitmapFactory to get your image from file, or wherever, then
you can use one of the overloads of Canvas.drawBitmap(...)
] to draw the image on the canvas. One of the overloads takes x/y coordinates.
精彩评论