简体   繁体   中英

How can I draw a BufferedImage onto the screen using LWJGL?

I want to know how to draw textures with BufferedImages in LWJGL Java. Does anyone know how to do this or is it impossible?

To draw an image onto the screen, you first need to get the Graphics object , of the Container or Component you're painting it onto. Then using that Graphics Object, call the drawImage() method, and supply the relevant details. This will output the image into the container, in the position that you decide.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM