开发者

Android, Canvas, draw image

开发者 https://www.devze.com 2023-01-04 23:43 出处:网络
How wo开发者_Python百科uld I draw an image oncanvas and position it based on x/Y co-ords? Also, is it possible to check if an image is drawn at those co-ords?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消