Computer Science Canada

help with pictures

Author:  CEKT [ Wed May 23, 2007 9:59 pm ]
Post subject:  help with pictures

i have followed the tutorial and have used the search to try to find similiar problems but that was unsuccesful.

It is probably something obvious. But when trying to import any images, it always comes up with an error. For example, here is some of my code.


code:
var pic1 :int := Pic.FileNew (maze.bmp)
      Pic.Draw (pic1, maxx div 2, maxy div 2, 0)
     
      delay (2000)
      cls
      Pic.Free (mypic1)


The error reads ('maze' has not been declared.)

Can anyone please help.

Thanks.

Author:  Clayton [ Thu May 24, 2007 8:00 am ]
Post subject:  RE:help with pictures

You need to send maze.bmp as a string to Pic.FileNew() like this:

Turing:

var pic1 : int := Pic.FileNew ("maze.bmp")


: