size

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
get the size of <object>
Associationsimage
Summary

Reports the amount of disk space taken by an object.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
if the size of image myImage > 20000 then beep
Values
NameTypeDescription
Value

The size property reports an integer. This property is read-only and cannot be set.

RelatedKeyword: image, integer
Property: filename
Function: heapSpace, hasMemory, stacks, files, diskSpace
Glossary: object, property, LiveCode, audio clip, EPS, HyperCard, video clip, byte
Object: stack
Description

Use the size property to judge how much memory an object takes when displayed.

The size of an image, EPS object, audio clip, or video clip is is the number of bytes of disk space that the object takes up.

The size property of a stack is always 10000. For stacks, this property is included in LiveCode for compatibility with imported HyperCard stacks and does not report a meaningful value.

Note: The size of an image that has a filename is always empty. To get the true size of such an image, either use the detailed files, or check the length of the file url.

Tagsfile system