Garry's Mod Wiki

DImageButton:SetStretchToFit

  DImageButton:SetStretchToFit( boolean stretch )

Description

Sets whether the image inside the DImageButton should be stretched to fill the entire size of the button, without preserving aspect ratio.

If set to false, the image will not be resized at all.

Arguments

1 boolean stretch
True to stretch, false to not to stretch