REM Change these 3 lines as appropriate...
in_file$="$.insertlog": REM source file path
out_file$="RAM:$.sprites": REM destination file path
out_type% = &ff9 : REM target file type
SYS "OS_File",20,in_file$ TO in_obj%,,,,in_size%,,in_type%
IF in_obj%<>1 THEN SYS "OS_File",19,in_file$,in_obj%
DIM in_mem% in_size%
SYS "ImageFileConvert_Convert",0,out_type% OR in_type%<<16,in_mem%,in_size%,0,0,-1 TO ,,,,,out_size%
IF out_size% = -1 THEN out_size%=10240:REM if output size unknown
DIM out_mem% out_size%
SYS "ImageFileConvert_Convert",0,out_type% OR in_type%<<16,in_mem%,in_size%,out_mem%,out_size%,-1
Please login before posting a comment. Use the form on the right to do so or create a free account.
Search the archives
Today's featured article
RISC OS artist wows public with digital artwork A RISC OS-using artist has described exhibiting his digitally-created work in a public gallery as a "rewarding experience". Richard Ashbery, who used ArtWorks and Photodesk to create his images, showed off patterns and colourful illustrations to punters, who told him his work made a change from the oils and watercolour masterpieces usually exhibited. 1 comment, latest by socris on 18/11/08 4:23PM. Published: 17 Nov 2008