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

Function

dxImageSize

ClientDrawing (dx)Trilogy Hub only

Returns the size of a resource image file in pixels, without creating a texture.

Syntax

int, int dxImageSize(string filePath)

Arguments

filePathstring
The file path.

Returns

Width and height or false.

Example

local w, h = dxImageSize("img/logo.png")

See also