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

Function

dxSetPixelColor

ClientDrawing (dx)Identical to MTA:SA

Sets the colour of pixel (x, y) in plain pixels and changes the passed string. Images smaller than 4x4 are rejected.

Syntax

bool dxSetPixelColor(string pixels, int x, int y, int r, int g, int b [, int a = 255])

Arguments

pixelsstring
plain pixels.
xint
X.
yint
Y.
rint
Red.
gint
Green.
bint
Blue.
aint, optional = 255
Opacity.

Returns

true on success.

Example

dxSetPixelColor(pixels, 5, 5, 255, 122, 34)
dxSetTexturePixels(tex, pixels)

See also