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

Username:   Password: 
 RegisterRegister   
 Pic.ScreenSave error
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jonny Tight Lips




PostPosted: Sun Sep 05, 2004 7:34 pm   Post subject: Pic.ScreenSave error

I'm trying to use Pic.ScreenSave to divide up my tile sets into tiles but I keep getting an error here is my code:

code:
picID := Pic.ScreenSave (x1, y1, x2, y2, "tile.bmp")


and the error is get says:
'ScreenSave' is a procedure call and hence does not return a value

I don't get it I did just like the turing help file said. HELP!
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun Sep 05, 2004 10:01 pm   Post subject: (No subject)

yeah, it is a procedure and does not return a value Laughing

the image is saved as the file name specified. You'd want
code:

Pic.ScreenSave (x1, y1, x2, y2, "tile.bmp")
picID := Pic.FileNew("tile.bmp")


though with such, I dont see a point in saving the file anyways (unless you are going to reload the image elsewhere lateron). You can
code:

picID := Pic.New(x1,y1,x2,y2)

(I think that's the syntax... I dont have turing installed)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: