Image

From MiniScript Wiki
Revision as of 15:21, 2 April 2020 by JoeStrout (talk | contribs) (Created page with "In Mini Micro, the <c>Image</c> class represents a picture, i.e. a rectangular array of pixel colors. {| class="wikitable" |- ! Method or Property !! Purpose |- | Image...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In Mini Micro, the Image class represents a picture, i.e. a rectangular array of pixel colors.

Method or Property Purpose
Image.width image width, in pixels
Image.pixel(x,y) get color of image pixel at x,y
Image.setPixel(x,y, c) set color of image pixel at x,y to c
Image.getImage(left,bottom, width, height) get a rectangular subregion of the image as a new Image