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.

Newcomers DBPro Corner / Help with loading images

Author
Message
korn on the kob
17
Years of Service
User Offline
Joined: 21st Feb 2007
Location:
Posted: 21st Feb 2007 09:55
I know how to load them and im fairly good at this program. but i keep running into the problem with loading a lousy image.

im using the Load Image "image.bmp",1
and i keep getting a runtime error saying it cant load the image. any ideas?
Sasuke
18
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 21st Feb 2007 11:44
Are you sure the image your trying to load is a BMP, or is in right location. If you put the image in a folder your have to write Load Image "folder/image.bmp",1.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 21st Feb 2007 12:50
Also, if you are using the image mainly for 2D work you need to speicfy an additional ,1 flag on end of command to retain pixel perfection, otherwise image will be blurry.

LOAD IMAGE "whatever.BMP",1,1

Boo!
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 21st Feb 2007 12:59
Also,i sometimes have that when running the exe from the Build exe\execute button.

That bugs me,but i just let it build the .exe and then execute it myself.

-Prince Of Darkness
korn on the kob
17
Years of Service
User Offline
Joined: 21st Feb 2007
Location:
Posted: 21st Feb 2007 21:42
ya ive done all of that, and i made sure it was a bitmap. and i always create and exe and load it and it still gives me that problem.
korn on the kob
17
Years of Service
User Offline
Joined: 21st Feb 2007
Location:
Posted: 21st Feb 2007 21:51
ok problem solved, i figured out my problem. i saved the image again as bitmap in paint and now its working like a charm. thanks for ur help guys

Login to post a reply

Server time is: 2024-11-26 22:18:38
Your offset time is: 2024-11-26 22:18:38