
-----------------------------------
noobprogrammer123
Wed Apr 28, 2004 7:35 pm

need picture help
-----------------------------------
i am a new programmer and i dont know why my picture doesn't work

var cherries :int := Pic.FileNew ("c:\My Documents\cherry.bmp") 
Pic.Draw(cherries,1,1,0)

-----------------------------------
Paul
Wed Apr 28, 2004 7:45 pm


-----------------------------------
-The path is wrong or the pic isn't there.
-You got the pic extension/name wrong.
I suggest u just use
Pic.FileNew ("cherries.bmp")
and not type the full path and save the file in the same folder as the picture.

-----------------------------------
Raugrist
Wed Apr 28, 2004 8:36 pm


-----------------------------------
The problem is in your first line. Either change it to:

var cherries :int := Pic.FileNew ("c:/My Documents/cherry.bmp")

Or

var cherries :int := Pic.FileNew ("c:\\My Documents\\cherry.bmp")

I prefer the former, of course.
