how do i put an image in my program?
Author |
Message |
prima_rory
![](http://www.thelinkinsix.com/thesix/mike.jpg)
|
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 ![Smile Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
AsianSensation
|
Posted: Tue Feb 10, 2004 10:44 pm Post subject: (No subject) |
|
|
using Pic.FileNew and Pic.Draw |
|
|
|
|
![](images/spacer.gif) |
santabruzer
![](http://www.pureoc.d2g.com/uploaded_images/9853.jpg)
|
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)
|
|
|
|
|
|
![](images/spacer.gif) |
prima_rory
![](http://www.thelinkinsix.com/thesix/mike.jpg)
|
Posted: Tue Feb 10, 2004 10:51 pm Post subject: (No subject) |
|
|
im only in grd 10... |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
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! |
|
|
|
![](images/spacer.gif) |
prima_rory
![](http://www.thelinkinsix.com/thesix/mike.jpg)
|
Posted: Tue Feb 10, 2004 10:58 pm Post subject: (No subject) |
|
|
thank u |
|
|
|
|
![](images/spacer.gif) |
|
|