ImageIsValid

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<mImage> is valid
Associationscom.livecode.canvas
Summary

The validity of an image

Parameters
NameTypeDescription
mImage

An expression which evaluates to an image.

Example
// Create an image from empty data
variable tImage as Image
put image from data (the empty data) into tImage

// Before attempting to load the image it is assumed to be valid
variable tValid as Boolean
put tImage is valid into tValid

// tValid now contains True

// Get the width of the image, this will fail, returning 0 and marking the image as invalid
variable tWidth as Number
put the width of tImage into tWidth

// tWidth now contains 0

put tImage is valid into tValid

// tValid now contains False
Description

Whether or not the image is valid

Tagscanvas