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

Username:   Password: 
 RegisterRegister   
 how do i put an image in my program?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
prima_rory




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Tue Feb 10, 2004 10:44 pm   Post subject: (No subject)

using Pic.FileNew and Pic.Draw
santabruzer




PostPosted: Tue Feb 10, 2004 10:46 pm   Post subject: (No 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.
code:

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




PostPosted: Tue Feb 10, 2004 10:51 pm   Post subject: (No subject)

im only in grd 10...
Dan




PostPosted: Tue Feb 10, 2004 10:56 pm   Post subject: (No subject)

i do rigth thess things for a point:

http://www.compsci.ca/v2/viewtopic.php?t=191
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
prima_rory




PostPosted: Tue Feb 10, 2004 10:58 pm   Post subject: (No subject)

thank u
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  [ 6 Posts ]
Jump to:   


Style:  
Search: