Load png/jpeg?

Community Forums/Monkey Talk/Load png/jpeg?

gerald(Posted 2015) [#1]
Hi,

I tried putting the art in the build data folder and coding ("data/boing.png") that didn't work either.

Can anyone supply me with a woking file that loads external art?

I would appreciate it.

Gerald


Floyd(Posted 2015) [#2]
You already have many working files that load external art.

Just search your \bananas folder for .png files. Any example program that includes such a file will no doubt load it.


steve_ancell(Posted 2015) [#3]
Not the build/data folder gerald, create a folder named boing.data in the same directory as your monkey source file and make sure it's named boing.monkey.

You can call the folder sausage.data or anything else if you like, as long as the monkey file and the data folder contain the same name. For example: boing.monkey needs a folder named boing.data, sausage.monkey would need a folder named sausage.data. I repeat, the folder and the monkey file need to be in the same parent (root) folder. Don't modify anything inside the build folder.


Midimaster(Posted 2015) [#4]
please have a look on my help in your old thread:

http://www.blitzbasic.com/Community/post.php?topic=105014&post=1276509