templateImage

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
templateImage
Summary

Used with the set command to set the properties of newly created images.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the dontDither of the templateImage to true
RelatedProperty: properties, ID
Control Structure: function
Keyword: templateScrollbar, default, image
Object: image
Glossary: object, keyword, property, command, expression
Command: reset, set
Function: functionNames
Description

Use the templateImage keyword to set up default properties to be used for any new images objects you create.

The templateImage can be thought of as a special, abstract object. It is not an actual image, but it has all the properties of an image. The ID property of the templateImage is zero.

You can use the set command to set the properties of the templateImage before creating an image. The new image has the properties of the templateImage, by default. Changing the properties of the templateImage does not affect existing images.

The properties of the templateImage can be returned to the default settings using the reset command.

You can refer to the templateImage using any of the following forms:

templateImage
the templateImage
templateImage()

Note: The templateImage keyword is implemented internally as a function and appears in the functionNames. However, it cannot be used as a function in an expression.