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 / noob get image problem

Author
Message
AndyJF
19
Years of Service
User Offline
Joined: 19th May 2007
Location:
Posted: 19th May 2007 16:43
I'm trying to create a bob from a 36x36 bitmap by using

load bitmap "c:\redtile.bmp",1
get image 1,0,0,35,35
bob 1,0,0,1

bob width(1) returns a value of 36 which is what you'd expect but it's not grabbing the whole image, the last line of pixels on the right and bottom of the tile are missing.

get image 1,0,0,36,36

works and grabs the whole image but bob width() returns a value of 37

It's confusing the hell out of me.

Also - when I position the bob at coords 0,0 it cuts the top line of pixels off. To get it to display at 0,0 I have to position it at 0,1

Any help appreciated
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 20th May 2007 02:52
You won't have that problem if you just use:

Load Image "c:\redtile.bmp",1

Load Bitmap is for loading screens.

TDK_Man

Login to post a reply

Server time is: 2026-07-05 22:37:11
Your offset time is: 2026-07-05 22:37:11