DImage.SetImage
From GMod Wiki
| Function | |
| Syntax | DImage:SetImage( String material ) |
| Description: | |
| Sets the image for this panel to display. | |
| Returns: | nil |
| In Object: | DImage |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DImage.SetImage]DImage.SetImage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- If the given material is in a different format, this function converts the material to the correct format (UnlitGeneric, with VertexColor and VertexAlpha enabled).
- The image will be stretched to fit the panel. Use DImage.SizeToContents to set the panel to the correct size.