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.
如何将 png 分配给变量,然后在特定的 x 和 y 上绘制它?请不要使用 OpenGL 绑定等。
You can save the image in a org.newdawn.slick.Image with
org.newdawn.slick.Image
Image img = new Image("/path/to/img");
Then draw it in the render function with
render
img.draw(x, y);
Image.Image(String ref)
Image.draw(float x, float y)