Computer Science Canada

Pic.ScreenSave error

Author:  Jonny Tight Lips [ Sun Sep 05, 2004 7:34 pm ]
Post subject:  Pic.ScreenSave error

I'm trying to use Pic.ScreenSave to divide up my tile sets into tiles but I keep getting an error here is my code:

code:
picID := Pic.ScreenSave (x1, y1, x2, y2, "tile.bmp")


and the error is get says:
'ScreenSave' is a procedure call and hence does not return a value

I don't get it I did just like the turing help file said. HELP!

Author:  Tony [ Sun Sep 05, 2004 10:01 pm ]
Post subject: 

yeah, it is a procedure and does not return a value Laughing

the image is saved as the file name specified. You'd want
code:

Pic.ScreenSave (x1, y1, x2, y2, "tile.bmp")
picID := Pic.FileNew("tile.bmp")


though with such, I dont see a point in saving the file anyways (unless you are going to reload the image elsewhere lateron). You can
code:

picID := Pic.New(x1,y1,x2,y2)

(I think that's the syntax... I dont have turing installed)


: