Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / can't load image in db pro

Author
Message
db pro
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 24th Nov 2003 04:35
hi,
When I run my program is has runtime error 506 can't load image.
I switched to dark basic pro from dark basic.
Is there a dark basic pro step I'm missing or a glitch in the dark basic pro.
dark basic worked fine on my system.
OH, I did load the media file but is there another step in dark basic pro.
make matrix 1, 1000, 1000, 10, 10
load image "grass_T.BMP" , 2
position matrix 1, -500, -100, -500
prepare matrix texture 1, 1, 1, 1
update matrix 1
if this snippet helps

JusCrzn
CoTang
22
Years of Service
User Offline
Joined: 18th Nov 2003
Location:
Posted: 24th Nov 2003 07:10
Make sure when you added it in the media section you check mark the little box that say something like "copy to source directory" or something like that. or you can specify the full path instead of LOAD IMAGE "C:...\grass_T.bmp",2

Login to post a reply

Server time is: 2026-07-26 15:30:21
Your offset time is: 2026-07-26 15:30:21