Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在java中有一个游戏,我的所有对象都绘制在一个双缓冲区上,想绘制一个背景,但不希望每帧都重绘背景,我怎么只画一次?
您可以在 a 上创建背景BufferedImage,这样您就不必每帧都重新创建背景。但是,您必须每帧都绘制背景。这是标准的 Java 动画。
BufferedImage