AcediaDocumentation

Image drawing

Properties for Drawing.new("Image").

Inherits the shared drawing properties.

Properties

MemberType / signatureMeaning
PositionVector2Top-left point.
SizeVector2Display dimensions.
DatastringEncoded image bytes, not an asset URI.
RoundingnumberCorner 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.

On this page