
-----------------------------------
nonamedude
Wed May 13, 2009 7:02 pm

Whats wrong with this picture?
-----------------------------------
What is it you are trying to achieve?
Import a picture from the same directory .


What is the problem you are having?
Does not display


Describe what you have tried to solve this problem
Reading the walkthrough

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


var mypic : int := Pic.FileNew ("World of warcraft.bmp" ?)
Pic.Draw (mypic, maxx div 2, maxy div 2, 0)




Please specify what version of Turing you are using
Latest version

-----------------------------------
DemonWasp
Wed May 13, 2009 7:13 pm

RE:Whats wrong with this picture?
-----------------------------------
What's that question mark doing there?

-----------------------------------
Dan
Wed May 13, 2009 7:15 pm

RE:Whats wrong with this picture?
-----------------------------------
There should be no '?' in Pic.FileNew ("World of warcraft.bmp" ?)

Do you get an error or warrning saying illegal picture id? If so it is likey that turing can not find the picture file you are refuring to.

Make sure it is in the same directory as the turing program.

-----------------------------------
nonamedude
Wed May 13, 2009 7:28 pm

Re: Whats wrong with this picture?
-----------------------------------
Ok what do u mean the same directory, i just put the program in a folder and then made another folder inside and put the picture in it

Program folder------>Pictures------->World of warcraft

If there should be no Pic.FileNew ("World of warcraft.bmp" ?) 
 then how should i specify where the pic is?

-----------------------------------
tjmoore1993
Wed May 13, 2009 7:30 pm

RE:Whats wrong with this picture?
-----------------------------------
The following should be


var mypic : int := Pic.FileNew ("World of warcraft.bmp") 
Pic.Draw (mypic, maxx div 2, maxy div 2, 0) 


-----------------------------------
tjmoore1993
Wed May 13, 2009 7:32 pm

RE:Whats wrong with this picture?
-----------------------------------
Specifying where a picture is fairly simple. Locate where your picture is either outside or inside your current project folder.

Example

("Picture.bmp") assuming it is in the same folder as the saved project

("C:\\Picture.bmp") assuming it is located in the C drive directory.

-----------------------------------
DtY
Wed May 13, 2009 7:32 pm

RE:Whats wrong with this picture?
-----------------------------------
You said the image was in the pictures directory, or in the same directory?

-----------------------------------
nonamedude
Wed May 13, 2009 7:35 pm

Re: Whats wrong with this picture?
-----------------------------------
The picture is in a folder, and the folder is in the folder that the program is in.