Reading the help file indicates that to clear images out of memory one needs to call PROC_imgExit followed by PROC_imgINIT and doing so does indeed allow me to delete the file, but it also disables the library so that no further images are displayed.
Code: Select all
INSTALL @lib$+"ImgLib"
PROC_imgInit
l%=0:t%=0:w%=1920:h%=1080
OSCLI("SCREENSAVE "+@dir$+"Temp.bmp "+STR$l%+","+STR$t%+","+STR$w%+","+STR$h%)
t%=FN_imgLoad(@dir$+"Temp.bmp")
OSCLI("DEL "+CHR$34+@dir$+"Temp.bmp"+CHR$34)