how do i put an image in my program?
Author |
Message |
prima_rory
|
Posted: 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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
AsianSensation
|
Posted: Tue Feb 10, 2004 10:44 pm Post subject: (No subject) |
|
|
using Pic.FileNew and Pic.Draw |
|
|
|
|
|
santabruzer
|
Posted: 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
|
Posted: Tue Feb 10, 2004 10:51 pm Post subject: (No subject) |
|
|
im only in grd 10... |
|
|
|
|
|
Dan
|
Posted: 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
|
Posted: Tue Feb 10, 2004 10:58 pm Post subject: (No subject) |
|
|
thank u |
|
|
|
|
|
|
|