Skip to main content
gamedev.net
🔒 Locked

[java] Loading Images

Started by ZinkForb 1 reply 250+ views
Original Post
ZinkForb
ZinkForb
I have a book on java and in it it says when i wanna load a image to do it through mediatracker before using drawImage is there an easier way to do this (other than using the io thats still annoing i want like one line that loads and draws the image and EVERYTHING) thank you
--------------------------"...let the wookie win."What seems to be the officer problem?
BertS
BertS
Image image=new ImageIcon(filename).getImage()
ZinkForb
ZinkForb
Thanks BertS i apperciate it!
I tried it and it worked perfectly:D

BTW if you read this post plz goto my latest post
--------------------------"...let the wookie win."What seems to be the officer problem?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.