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

Username:   Password: 
 RegisterRegister   
 How do take pics from a paint program to tourng??
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Andy_Bullock




PostPosted: Thu Oct 28, 2004 12:37 pm   Post subject: How do take pics from a paint program to tourng??

How do take pics from a paint program to turng??

Thanx Andy ullock
Sponsor
Sponsor
Sponsor
sponsor
Flea




PostPosted: Thu Oct 28, 2004 1:48 pm   Post subject: (No subject)

No problem Andy!

First save your file as a .bmp or a .jpg. Put it into the same folder as your program.

code:
%to assign your pic to the variable:
(intVariableName) := Pic.FileNew ("image.jpg")

%to display your pic:
Pic.Draw (x, y, intVariableName, picCopy)


Then when you're done using your picture, you might wanna "free" it to save memory by using Pic.Free. It's not needed but it's a good thing to do, especially for big programs.
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: