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 Discussion / help me position bitmaps

Author
Message
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 23rd Feb 2004 18:19
hi all,
i am new to darkbasic and programming together.

ok so my problem is i can insert a bitmap by this



and i don't know how to position the bitmap because it keeps coming up in the top left hand corner.

go onto my site
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 23rd Feb 2004 19:21
Don't load it as an bitmap... load it is an image!



Or you make it an sprite:


Hope i've helped

Bring fun to life!!!!!
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 23rd Feb 2004 19:25
yeh it has helped am just guna give it a try now.

go onto my site
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 23rd Feb 2004 19:41
it does not work i think i have a faulty darkBASIC
these are the problems

1. load bitmap "c:\car.bmp" <------ this works
2. load bitmap "c:\car.bmp",0 <------ this works
3. load bitmap "c:\car.bmp",1 <------ this does not work
4. load image "c:\car.bmp",1 <------ does not work
5. load image "c:\car.bmp" <------ does not work

go onto my site
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 23rd Feb 2004 19:45
That's strange, It should work. If its exist it should work! Hmmm.. can you post your whole project? maybe the fault is somewhere else.

Bring fun to life!!!!!
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 23rd Feb 2004 19:49
its not a project as i am a begginner but give me a few minutes and i'll get you it also when i press F5 and then F12 to go back it erases my load bitmap or load image.

go onto my site
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 23rd Feb 2004 19:51
all i got is



its gives me a blank screen and then erases my command line when i press F12

go onto my site
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 23rd Feb 2004 19:52
when you say it doesn't work, you mean it doesn't display the image right?
it displays with the first 2 because you are loading your bitmap to the screen (bitmap number 0) with the next one you are loading it to a hidden(offscreen) bitmap, so you can't see it. with the images you must have an image number at the ned of the command and to get it to show, put "paste image 1,0,0" just after you've loaded it.

In the beginning, the universe was created...
This made alot of people very angry and it has been widely regarded as a bad idea...
Visit http://redeye.dbspot.com
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 23rd Feb 2004 20:07
that aint working it is saying that there is an error on the paste image and then the load image command gets deleted.

go onto my site
pizzaman
21
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 23rd Feb 2004 21:54
hi try this- start a new file and save it into a folder (any folder will do but new one will be easier) then place your .bmp file in the folder.

now place the commands in your DB project

load image "Picturename.bmp",1
paste image 1,0,0

for the picturename dont put in the whole destination of the picture just the picture's name eg "picture1" not "C:\folder1\picture1"

if it works you can then change the values of the two 0's in the paste image command to place the image anywhere on screen.

o a bit of advice never give up,its the best adivce i can give, also check out the command examples within DB, they will help you alot

hope i've helped
Pricey
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 23rd Feb 2004 23:02
that is a strange problem... i doubt you copy of DB is faulty, where did you get it? it could be a pirate, you never know these days...


Dig a pit and poo in it
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 23rd Feb 2004 23:10
no my copy is definitely not pirate i ordered it off this website in a bundle package.

i have sorted it now anyway wot i had 2 do was ;



go onto my site
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 24th Feb 2004 12:33
Try this;



Hopefully that will work for you

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-22 17:32:45
Your offset time is: 2025-05-22 17:32:45