prepare image

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
prepare image <imageName>
prepare image file <filename>
Summary

Preloads an image into memory.

Introduced6.0.0
OSmac, windows, linux, ios, android
Platformsdesktop, server
Parameters
NameTypeDescription
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.

Example
prepare image "myImage"
prepare image file "/Disk/Folder/logo.jpg"
RelatedCommand: prepare
Glossary: command, execute
Description

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.

Tagsmultimedia