DImage

From GMod Wiki

Revision as of 01:26, 1 May 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Derma Control: DImage
Parent Class:DPanel
Subclasses:
Description:
A panel with an image on it.

Examples

DescriptionCreate an image of an antlion.
Used onNewerClient.png
Code
// myParent = a panel
myImage = vgui.Create("DImage", myParent)
myImage:SetImage( "VGUI/entities/npc_antlion" )
myImage:SizeToContents() // make the control the same size as the image.
 
Outputimagedb5.png


Methods

NewerClient.png DImage.GenerateExample
NewerClient.png DImage.GetImage
NewerClient.png DImage.GetImageColor
NewerClient.png DImage.GetKeepAspect
NewerClient.png DImage.GetMaterial
NewerClient.png DImage.Init
NewerClient.png DImage.Paint
NewerClient.png DImage.SetImage
NewerClient.png DImage.SetImageColor
NewerClient.png DImage.SetKeepAspect
NewerClient.png DImage.SetMaterial
NewerClient.png DImage.SizeToContents

Inherited from DPanel

NewerClient.png DPanel.SetDisabled
NewerClient.png DPanel.GetPaintBackground
NewerClient.png DPanel.PerformLayout
NewerClient.png DPanel.GetDisabled
NewerClient.png DPanel.SetPaintBackground
NewerClient.png DPanel.ApplySchemeSettings

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox