ImageLabel
Displays an image. Maps to Roblox ImageLabel.
luau
PeanutUI.ImageLabel {
imageContent = "rbxassetid://123456",
size = PeanutUI.Size(64, 64),
}Properties
In addition to the shared widget properties:
| Property | Type | Description |
|---|---|---|
imageContent | Content | Image asset. |
imageColor | Color3 | Tint color. |
imageTransparency | number | Image transparency. |
resampleMode | Enum.ResamplerMode | Resampling mode. |
scaleType | Enum.ScaleType | How the image scales. |
sliceCenter | Rect | Nine-slice center rect. |
sliceScale | number | Nine-slice scale. |
tileSize | Size | Tile size when tiling. |
imageRectOffset | Vector2 | Source rect offset. |
imageRectSize | Vector2 | Source rect size. |
isLoaded | boolean | Whether the image has loaded. |
Events
ImageLabel uses the shared widget events with no additions.