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 viewing images

Author
Message
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 26th Jun 2004 04:27
i have no idea how you load images
plaese help
thanks

has your ending began or has your beginning ended
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 26th Jun 2004 04:41
use load image with ',1' if you aren't using the image as a texture. the ',1' turns of mipmapping.

load image "filename",imgnum,1
load bitmap "filename", bmpnum


if you need to get an image from a loaded bitmap or loaded image then:

loading & extracting imgaes using load image
load image "filename",tmpimgnum,1
paste image tmpimgnum,0,0,xsize,ysize
get image imgnum,0,0,xsize,ysize
delete tmpimgnum


loading & extracing image using load bitmap
load bitmap "filename",bmpnum
get image imgnum,0,0,xsuze,ysize
delete bmpnum


if you need transparency say for sprites, be sure to
set image colorkey r,g,b
befor loading any images

you can also add a ",1" to paste image to ensure transparency
paste image imgnum,x,y,1

just rememeber you can load more than .bmp with the load bitmap command. The name sometimes confuses people. Check the help for all available formats. off hand some are .bmp,.jpg,.png,.tga

Whether to use load bitmap or load image depends on how the image is being used. 2d or 3d, is it a texture, sprite image etc...

~zen


Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 26th Jun 2004 06:54
i ment to view them
not just load them

has your ending began or has your beginning ended
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 27th Jun 2004 08:56
Duh, that's where the paste image command in his post comes to play. Remember, if you don't understand a command ALWAYS look it up in the manual/help files.
--
TAZ

History did not begin with PONG. -- Greg Costikyan

Game Beavers

Login to post a reply

Server time is: 2024-11-26 22:19:10
Your offset time is: 2024-11-26 22:19:10