Image.width

From MiniScript Wiki
Revision as of 04:43, 19 August 2021 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Image.width returns the width of the image, in pixels. (Read-only.)

Example

img = file.loadImage("/sys/pics/Dart.png")
print img.width