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
SoloWolf
14
Years of Service
User Offline
Joined: 15th Sep 2011
Location:
Posted: 16th Sep 2011 07:18
First off all, Hi!!!!
I am New, and I am from argentina, sooo im really sorry for my BAD english!
I have a dude, i want to load and image in mi BDpro, but i press F5 and nothing, just a black window, so, ho i put the image?
For the proyect i need a carpet (a directory) in with i save all mi things?

i have a proyect in this directory
C:\\Archivos de programa\\The Game Creators\\Dark Basic Professional\\Projects\\PRUEBA
and i have a picture named \"dibujo\"

how do i load this picture?
the picture is a bmp doit whit paint (i was testing!)


ps: you can correct mi spelling if you want?

I am New )-:
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Sep 2011 11:47 Edited at: 16th Sep 2011 11:48
Generally, the code is:



Hopefully this helps.

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
zenassem
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 16th Sep 2011 12:38 Edited at: 16th Sep 2011 13:28
The above is not necessarily correct.

1st OP stated his image is a .bmp not a .jpg.
2nd OP never stated that the image was intended to be a sprite, but he also didn't state exactly how the image was going to be used (texture, sprite, etc...)

The way I see it,, with the information given,, the OP would either use "Load Image" or "Load Bitmap" commands.

being that your image is in the same directory as the .dba

load bitmap



* Note: By defualt "bitmap 0" is the current bitmap, so if you use 0 as your bitmap number in the load bitmap command... nothing else needs to be done in order to display it. Alternatively you could make other bitmaps the current bitmap with the command set current bitmap Bitmap Number.

** the name of the command can be deceiving. The command is not only for loading images of the type .bmp. See the help for more info.


load image

*Note: Images are not automatically displayed In order to see the image it must be pasted. You can also use the paste image command inside the main loop.

** There are times when I use a "get image" comman following the load image. It depends on how I am using the image. Look at the "get image" command to see the texture flags values and what they do.

Be sure to look at the parameters/flags for the LOAD IMAGE & PASTE IMAGE commands in the help file. They can be important depeneding on how the image is going to be utilized, and they will effect how the image looks.

Your signature has been erased by a mod please reduce it to 600 x 120.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 16th Sep 2011 17:29
Quote: "the name of the command can be deceiving. The command is not only for loading images of the type .bmp."


What he means by that SoloWolf, is that LOAD BITMAP is generally used to load images, manipulate them, and regrab them with GET IMAGE away from the users sight (so they don't see what the program does... things like setup menus or add things to premade images). If your image is not going to change and is just loaded as is it's best to use LOAD IMAGE instead of LOAD BITMAP.

Login to post a reply

Server time is: 2026-07-10 17:19:42
Your offset time is: 2026-07-10 17:19:42