Spritefiles (filetype &FF9) are exactly the same as a Sprite Area in memory, less the first word. The first word denotes the size of the area, and this can be determined in a sprite file by the size of the file itself.
Sprite files can be created programatically using OS_SpriteOp, by switching output to a Sprite and plotting, or by using applications such as Paint.