Difference between revisions of "File.loadImage"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>File.loadImage</c> loads an image from a PNG or JPEG file on disk. === Arguments === {| class="wikitable" |- ! Parameter Name !! Type !! Default Value !! Meaning |- | ''p...")
 
Line 12: Line 12:
 
=== Usage Notes ===
 
=== Usage Notes ===
  
If the PNG file contains an embedded color profile, it will be used to adjust the raw colors in the file.  Popular image editors usually include an option to turn this feature off (sometimes called "color management") if you do not want it.
+
If the PNG file contains an embedded color profile, it will be used to adjust the raw colors in the file.  Popular image editors usually include an option to turn off this feature (sometimes called "color management") if you do not want it.
  
 
=== Example ===
 
=== Example ===
  
 
<ms>img = file.loadImage("/sys/pics/Wumpus.png")</ms>
 
<ms>img = file.loadImage("/sys/pics/Wumpus.png")</ms>

Revision as of 19:49, 31 March 2020

File.loadImage loads an image from a PNG or JPEG file on disk.

Arguments

Parameter Name Type Default Value Meaning
path string "" name, partial path, or full path of image file to load

Usage Notes

If the PNG file contains an embedded color profile, it will be used to adjust the raw colors in the file. Popular image editors usually include an option to turn off this feature (sometimes called "color management") if you do not want it.

Example

img = file.loadImage("/sys/pics/Wumpus.png")