ImageLabel

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

Up and coming

Show a picture: a file, bytes in memory, a tile of a sprite sheet, an animated strip or a built-in glyph.

Every picture is an Icon, never a bare path, and an animated one plays by itself with no script loop. ScaleType fits, crops, stretches or 9-slices it, with SliceCenter marking the middle in image pixels. ImageColor tints it, single-colour glyphs take the theme colour, and ImageSize gives the picture's pixel size once it has loaded.

Made with Instance.new("ImageLabel") or Clone().

Properties

NameTypeDefaultDescription
ImageIcon?The picture, always an Icon and never a bare path.
ImageColorColor3Tints the picture; single-colour glyphs take the theme colour.
ImageTransparencynumber
ScaleType"Fit" | "Crop" | "Stretch" | "Slice"
SliceCenterRectThe middle of the 9-slice, in image pixels.
ImageSizeVector2read-onlyThe picture's own size in pixels, once it has loaded.

Events

NamePassesDescription
Loaded()
From UIObject 19
From ScreenItem 2
From ShotInstance 33