xzit-xiaxu

GImage里加上:绝对路径+图片名,即可调用

import acm.graphics.*;
import acm.program.GraphicsProgram;
public class Beeperline extends GraphicsProgram {
	public void run() {
		GImage img = new GImage("C:\\Users\\Administrator\\Pictures\\EAF3FE93962A86A9E344C4722D365891.jpg");
		add(img,0,0);
	}
}

分类:

技术点:

相关文章:

  • 2021-05-20
  • 2021-07-09
  • 2022-12-23
  • 2021-12-12
  • 2021-09-24
  • 2021-10-07
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-10-15
  • 2022-01-05
  • 2021-07-27
相关资源
相似解决方案