ImageMakeFromFile

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
image from file <mPath>
Associationscom.livecode.canvas
Summary

Creates a new image.

Parameters
NameTypeDescription
mPath

An expression which evaluates to a string.

Example
// Load image from a file path
variable tImage
put image from file "images/logo.png" into tImage
Values
NameTypeDescription
return

A new image loaded from the file path provided.

Description

If the file path is relative it will be resolved relative to this card of the defaultStack in a library handler or the current widget instance script object if in a widget handler.

Tagscanvas