Garry's Mod Wiki

DImage:GetImageColor

  table DImage:GetImageColor()

Description

Returns the color override of the image panel.

Returns

1 table col
The color override of the image. Uses the Color.

Example

Creates an image panel and prints the default color override to console.

-- Generic image panel local img = vgui.Create("DImage") img:SetSize(128, 128) img:Center() img:SetImage("cantop") print(img:GetImageColor())
Output:
255 255 255 255