- Documentation
- Client functions
- dxGetPixelsSize
Function
dxGetPixelsSize
Returns the width and height of an image stored in pixels (any format).
Syntax
int, int dxGetPixelsSize(string pixels)Arguments
pixelsstring- Pixels.
Returns
Width and height or false.
Example
local w, h = dxGetPixelsSize(fileGetContents("img/logo.png"))