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
| Name | Type | Default | Description |
|---|---|---|---|
| Image | Icon? | The picture, always an Icon and never a bare path. | |
| ImageColor | Color3 | Tints the picture; single-colour glyphs take the theme colour. | |
| ImageTransparency | number | ||
| ScaleType | "Fit" | "Crop" | "Stretch" | "Slice" | ||
| SliceCenter | Rect | The middle of the 9-slice, in image pixels. | |
| ImageSize | Vector2 | read-only | The picture's own size in pixels, once it has loaded. |
Events
| Name | Passes | Description |
|---|---|---|
| Loaded | () |
From UIObject 19
From ScreenItem 2
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
