ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiStaticImageGetNativeSize

Function

guiStaticImageGetNativeSize

ClientInterface (GUI)Identical to MTA:SA

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)