Hi all,
When I read the descriptions of the BITMAP WIDTH/HEIGHT commands, I thought it meant that it would return the width and height of the bitmap I passed to the command. However, what I get in return is my screen resolution width and height. I’ve tried passing the commands the image number and leaving it blank. Could someone please tell me what I’m doing wrong?
backdrop on
color backdrop rgb(180, 35, 165)
set dir "Y:\Dark Basic Projects\bitmap experiment"
load bitmap "OrangewithShadow.png",0
width = bitmap width ()
height = bitmap height ()
get image 1,0,0,321,321
do
text 0,500,"mouse X position " + str$(mousex())
text 0,520,"mouse Y position " + str$(mousey())
text 0,540,"image width " + str$(width)
text 0,560,"image height " + str$(height)
paste image 1,0,0,0
loop
"GOTTA HAVE MORE COW BELL, BABY!!!!!