开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜