Preloads an image into memory.
Built-in Message handler
prepare image file <filename>
prepare image "myImage"
prepare image file "/Disk/Folder/logo.jpg"
Use the prepare image command to speed up execution when showing image data.
Use the prepare image command to preload an image at some time before it is needed. Then access the image and display it as needed on your stack. Since the image is already cached into memory, it displays instantly.
- imageName: The name specifies what image is forced to be decompressed into the image cache.
- filename: The location and name of the image file you want to load and decompress into the image data cache. Since the image data cache is keyed on the absolute filename, any images which reference that file are able to use the data from the cache. This assumes that the cache has not been flushed.