Difference between revisions of "Image.width"

From MiniScript Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
== Example ==
 
== Example ==
  
<ms>img = file.loadImage("/sys/pics/Dart.png")</ms>
+
<ms>img = file.loadImage("/sys/pics/Dart.png")
 +
print img.width</ms>
  
 
[[Category:Mini Micro]]
 
[[Category:Mini Micro]]

Revision as of 15:09, 2 April 2020

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

Example

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