- Documentation
- Client functions
- dxImageSize
Function
dxImageSize
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")