Computer Science Canada

how do i put an image in my program?

Author:  prima_rory [ Tue Feb 10, 2004 10:42 pm ]
Post subject:  how do i put an image in my program?

my class is doing a huge turing project and we're supposed make an educational program which includes a person's biography, exercises and a quiz. i was just wondering, how can u put an image (jpg) into my program?

thx Smile

Author:  AsianSensation [ Tue Feb 10, 2004 10:44 pm ]
Post subject: 

using Pic.FileNew and Pic.Draw

Author:  santabruzer [ Tue Feb 10, 2004 10:46 pm ]
Post subject: 

dude.. ever hear of the helpfiles?.... click F10, and type in Pic.. you'll get all of the info you want.. ... the reason i'm being a bastard.. is that seriously.. i mean comeon.... *sigh*

Pic.Draw Part of Pic module

Syntax Pic.Draw (picID, x, y, mode : int)

Description Pic.Draw is used to draw a picture on the screen. The picture is drawn with the lower left corner at (x, y).

Display Modes with Pic.Draw

Example The program draws a graphic on the screen and then repeats it 50 times in random positions.

        var picID:= Pic.New ("filename.jpg")
        var x, y : int
       Pic.Draw (picID, x, y, picCopy)

Author:  prima_rory [ Tue Feb 10, 2004 10:51 pm ]
Post subject: 

im only in grd 10...

Author:  Dan [ Tue Feb 10, 2004 10:56 pm ]
Post subject: 

i do rigth thess things for a point:

Author:  prima_rory [ Tue Feb 10, 2004 10:58 pm ]
Post subject: 

thank u