not sure where to look for this, but does anyone k...
# compose-desktop
s
not sure where to look for this, but does anyone know how to load images from
resources
folder when developing an intellij plugin? I’ve tried
imageResource
and
makeFromEncoded
but each of these methods fails to find the image resource
b
I'm also having this issue. If I figure it out before someone else responds I'll let you know!
🙏 1
s
b
Copy code
Image(
    bitmap = imageFromResource("header.png"),
"header")
I haven't figured out why the contentDescription is necessary, but you'll have to include it for it to work like this. If you find a better way, keep me posted. 🙂
message has been deleted
s
hmm, i tried using
imageFromResource
before posting the question and it didn’t work for me, perhaps the way resources are accessed from an intellij plugin context is different from a desktop context?