Syntax:
image {name} from {source} [at {left} {top}] [size {width} {height}]
Keyword handler:
linguist.swing.keyword.SKImage.class
Runtime handler(s):
linguist.swing.handler.SHImage.class
Function:
Declares an image constant. The pixels of the image will be included in the compiled script, with no need for supporting files. Although this can considerably increase the size of the script it makes subsequent access to the image much faster than if it had been loaded as needed from disk. You can use the image constant anywhere that takes an image, for example to set the icon of a button or label.
We recommend the use of ALL_CAPITALS for constants of any kind, to distinguish them from regular script variable names.
Example(s):
image BACKDROP from "jpg/bg01.jpg" image HILITE from "jpg/bg02.jpg" at 122 348 size 150 227