#how do I load an image from resources folder?

1 messages · Page 1 of 1 (latest)

midnight perch
#

I am trying, but it doesn't seem to be a very clear option

proud coveBOT
#

<@&987246487241105418> please have a look, thanks.

thorn hazel
midnight perch
tropic basalt
#

what does image mean?

#

java.awt.Image?

thorn hazel
sleek geyser
#

you would use the URL to load whatever resource you need. if you need an image, you'd load the image as you would any other image

#

you'd just be using the URL to locate the image

floral knot
#

getResourceAsStream is better imo, most image loading classes like ImageIO accept InputStream