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.

Author
Message
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 28th Nov 2003 03:26
hello, I am very new to this. I am a old man so this is not coming
very easy. I can't get a image to come in dark basic pro.
1. hide mouse
2. cls
3. load bitmap "boat", 1
4. get miage 1,0,0,300,300
5. sprite 1,50,50,200,200,1
6. wait key
7. end

the error I am getting is[runtime error- 504 can not grab due to
an illegal area]
If anyone can help that would be nice. Col. R.D. H.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Nov 2003 09:08
perhaps your video card can only handle a maximum of say 256 x 256 or some number divisible by 2.

try this example






change the areas that make the box size larger than 256 and the get image size and it might be apparant.

the lines im referring to are these ones

box 0,0,256,256

get image 1,0,0,256,256
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Nov 2003 09:14
How big is your image? If it's smaller than the 300x300 area that you are trying to grab, that will give this error.

Alternatively, why not just load the bitmap directly into the image bank?

LOAD IMAGE "boat", 1
Shadow Lord
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location:
Posted: 28th Nov 2003 21:52
Also add the extention to the image filename.

LOAD IMAGE "boat.bmp",1,1

I'm using DBPro to write "Suger Free Candyland", for diabetic children!

Login to post a reply

Server time is: 2024-11-25 18:53:39
Your offset time is: 2024-11-25 18:53:39