PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

ImageButton

Show deprecated

ImageButton

Show deprecated

An ImageButton behaves similarly to an ImageLabel in regards to rendering with the additional behaviors of a GuiButton. It defines the same image-rendering properties as a ImageLabel does.

You can disable image rendering by setting ImageButton/ImageTransparency to 1. This will leave you with a plain rectangle that can be used as a button. However, it may be better to use a blank TextButton for this.

Properties

Content

HoverImage

A textureId that will be used when ImageButton is being hovered

Content

Image

The image content displayed by the UI element.

Color3

ImageColor3

Determines how a rendered image will be colorized.

Vector2

ImageRectOffset

.The offset in pixels of the sub-area of an image to be displayed

Vector2

ImageRectSize

Determines the size in pixels of the sub-area of an image to be displayed.

float

ImageTransparency

Determines the transparency of the rendered image.

bool

IsLoaded

[ReadOnly] [NotReplicated]

Indicates whether the Image has finished loading from the Roblox website.

Content

PressedImage

A textureId that will be used when ImageButton is being pressed

ScaleType

ScaleType

Determines how an image will scale if displayed in a UI element whose size differs from the source image.

Rect

SliceCenter

Determines the center of a nine-slice image.

float

SliceScale

Scales the 9slice edges by the specified ratio

UDim2

TileSize

Sets the tiling scale of the ImageButton.

Functions

Events