Fandom

Livecode Wiki

Prepare image

2,161pages on
this wiki
Add New Page
Comments0 Share

Preloads an image into memory.

Syntax:

prepare image file <filename>

Examples:

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.

Parameters:

  • 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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.