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

Function

dxGetPixelsSize

ClientDrawing (dx)Identical to MTA:SA

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"))

See also