Computer Science Canada

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

Author:  Andy_Bullock [ 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

Author:  Flea [ Thu Oct 28, 2004 1:48 pm ]
Post 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.


: