ok then *makes one for the top of my head*
varible = 1
if file exist("filename.txt") = 0
open to write 1,"filename.txt"
write long 1,varible
close file 1
else
open to read "filename.txt",1
read long 1,varible
close file 1
endif
save bitmap "filename" + str$(varible) + ".bmp"
load bitmap "filename" + str$(varible) + ".bmp",1
get image 1,x1,y1,x2,y2
delete bitmap 1
delete file "filename" + str$(varible) + ".bmp"
save image "filename" + str$(varible) + ".bmp",1
varible = varible + 1
delete file "filename.txt"
open to write 1,"filename.txt"
write long 1,varible
close file 1
ok thats the code time to test it,
rem makes somthing to draw
make object sphere 1,100
color object 1,rgb(255,0,0)
varible = 1
if file exist("filename.txt") = 0
rem makes the file if it doesn't exist
open to write 1,"filename.txt"
write long 1,varible
close file 1
else
rem gets the number from the file if it does
open to read 1,"filename.txt"
read long 1,varible
close file 1
endif
rem does all the image saveing stuff
save bitmap "filename" + str$(varible) + ".bmp"
load bitmap "filename" + str$(varible) + ".bmp",1
get image 1,100,100,200,200
delete bitmap 1
rem delete the first image so the second can be saved over it
delete file "filename" + str$(varible) + ".bmp"
save image "filename" + str$(varible) + ".bmp",1
rem update the counter file
varible = varible + 1
delete file "filename.txt"
open to write 1,"filename.txt"
write long 1,varible
close file 1
Skid