
-----------------------------------
Jonny Tight Lips
Sun Sep 05, 2004 7:34 pm

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:

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!

-----------------------------------
Tony
Sun Sep 05, 2004 10:01 pm


-----------------------------------
yeah, it is a procedure and does not return a value :lol: 

the image is saved as the file name specified. You'd want

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

picID := Pic.New(x1,y1,x2,y2)

(I think that's the syntax... I dont have turing installed)
