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

Username:   Password: 
 RegisterRegister   
 quick and easy question
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sports_line




PostPosted: Sat Nov 20, 2004 8:37 am   Post subject: quick and easy question

i'm having difficulty loading pictures into my programs. I've been trying to use:

Pic.Draw (picID, x, y, picCopy)

The error:

Illegal picture ID number '0' (Probable Cause: picture not successfully created.)

I'm wondering if there is a way to correct this. Thanks

(new to programming by the way, and just learning commands from help files)
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Sat Nov 20, 2004 9:16 am   Post subject: (No subject)

This belongs in Turing Help: you are asking for help, not submitting a program.

Anyways, as to your question:
your variable picID has no picture. hence the "Probable Cause: picture not successfully created." You're probably using Pic.FileNew. If you don't have a full path (ex. "C:/My Documents/My Pictures/pic.bmp"), then the picture has to be in the same folder as your turing file. Or, you could just use the full path. -OR- you could even use .. to go up one level (ex. "../pic.bmp") For this, say your turing file is in a folder called code, and that folder is in a folder called program that also contains a bunch of pictures. You could use .. to navigate to your program folder and then get the picture.
BigBear




PostPosted: Mon Jun 15, 2009 9:03 am   Post subject: RE:quick and easy question

If you trying to run an example program it should have the pictures path specified.

Make sure your pictures are in the same folder as the Turing Source File.

Also make sure the format is supported by turing

Turing Help File wrote:
Turing 4.1 for Windows can load BMP, GIF and JPG files.


But gifs are a bit more complicated. And if you are on an older version it will say

"GIF graphics files are not supported at this time."

Also what's with all these spammers I say block the entire ISP
apomb




PostPosted: Mon Jun 15, 2009 12:00 pm   Post subject: RE:quick and easy question

this topic is from 2004 BigBear...
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  [ 4 Posts ]
Jump to:   


Style:  
Search: