Garry's Mod Wiki

DImage:SetKeepAspect

DImage:SetKeepAspect

DImage:SetKeepAspect( boolean keep )

Description

Sets whether the DImage should keep the aspect ratio of its image when being resized.

Note that this will not try to fit the image inside the button, but instead it will fill the button with the image.

Arguments

1 boolean keep
true to keep the aspect ratio, false not to

Special Pages


Wikis

?

Render Time: 137ms

DB GetPage 46
Generate Html 2
SaveChanges (1) 79
Render Body 0
Render Sidebar 7