Draw image on AWT Canvas

前端 未结 3 1101
醉梦人生
醉梦人生 2021-01-24 23:24

I\'m trying to draw an image on an AWT Canvas.

The only line I\'ve got this far is:

Canvas canvas = new Canvas();

I\'m not sure which m

3条回答
  •  醉酒成梦
    2021-01-25 00:10

    getImage()
    drawImage()
    

    There are many methods of drawing graphics in java.it will get you started

提交回复
热议问题