Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help with picture location in folders
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
shadowNET




PostPosted: Mon Sep 10, 2012 6:21 pm   Post subject: Help with picture location in folders

Hello i wanted to know if anyone could help me with this, im working on my final project in advanced and im using some jpeg imports, i wanted to know if there is anyway to have the jpegs in another folder then the .t file
an example of what im looking for is shown below, please reply with some commands or code thanks!


Posted Image, might have been reduced in size. Click Image to view fullscreen.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Sep 10, 2012 6:37 pm   Post subject: RE:Help with picture location in folders

yes. You should use a relative path from the location of the turing file to the image. E.g. if your turing file is inside Game, but images are inside Images (spaces often introduce problems in folder names, so lets call it Images instead of "Where I want picture to go" for now), you'd load something like
code:

../Images/my_image.jpeg

where .. goes up one directory
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
shadowNET




PostPosted: Tue Sep 11, 2012 12:43 pm   Post subject: Re: Help with picture location in folders

Thanks! i managed to get it working, and thanks for the warning about spaced folders, the only reason i gave that really long folder name was to ensure my point was getting across clearly
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: