Image drawing
Properties for Drawing.new("Image").
Inherits the shared drawing properties.
Properties
| Member | Type / signature | Meaning |
|---|---|---|
Position | Vector2 | Top-left point. |
Size | Vector2 | Display dimensions. |
Data | string | Encoded image bytes, not an asset URI. |
Rounding | number | Corner rounding. |
Example
local object = Drawing.new("Image")
object.Position = Vector2.new(20, 20)
object.Size = Vector2.new(100, 100)
object.Color = Color3.new(1, 1, 1)
object.Visible = true
object:Remove()Property writes require the matching types. TextBounds and __OBJECT_EXISTS are readonly. Set Data to encoded PNG, JPEG, GIF or BMP bytes supported by the decoder. getcustomasset returns a URI, which is not the Data input.
