Pic.ScreenSave error
Author |
Message |
Jonny Tight Lips

|
Posted: 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! |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
Posted: Sun Sep 05, 2004 10:01 pm Post subject: (No subject) |
|
|
yeah, it is a procedure and does not return a value
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) |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
|
|