Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 2
Generate Html 5
SaveChanges (1) 9
Render Body 0
Render Sidebar 12