Image.fromScreen

From MiniScript Wiki
Revision as of 03:15, 18 January 2025 by Redspark (talk | contribs) (Created page with "<c>Image.fromScreen</c> returns an image of the current state of the screen including all visible layers, scaled to the size specified. === Arguments === {| class="wikit...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Image.fromScreen returns an image of the current state of the screen including all visible layers, scaled to the size specified.

Arguments

Parameter Name Type Default Value Meaning
width number 960 the width to scale the resulting screen capture to.
height number 640 the height to scale the resulting screen capture to.

Example

img = Image.fromScreen(96, 64)