Image
Images display static assets with optional tinting and sizing controls.
Playground
Image Unavailable
Usage
You can create an Image by calling the AddImage method on a Groupbox.
Arguments
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Index/ID of the image element | string | nil |
| 2 | Image configuration table | table | nil |
Configuration Table
Prop
Type
Methods
You can use the following methods to interact with the image element:
SetImage
Updates the displayed image.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Image URL or asset ID | string | nil |
SetTransparency
Sets the transparency value.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Transparency between 0 and 1 | number | nil |
SetColor
Applies a color tint.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Color tint (Color3) | Color3 | nil |
SetRectOffset
Updates the rectangle offset.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Offset (Vector2) | Vector2 | nil |
SetRectSize
Updates the rectangle size.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Size (Vector2) | Vector2 | nil |
SetScaleType
Sets the frame scaling behaviour.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Scale type (Enum.ScaleType) | Enum.ScaleType | nil |
SetHeight
Adjusts the frame height.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Frame height in pixels | number | nil |