- Documentation
- Client functions
- guiStaticImageGetNativeSize
Function
guiStaticImageGetNativeSize
Returns the real pixel size of the image file.
Syntax
int guiStaticImageGetNativeSize(gui-staticimage theImage)Arguments
theImagegui-staticimage- The image.
Returns
Width and height.
Example
local w, h = guiStaticImageGetNativeSize(logo)
guiSetSize(logo, w, h, false)