M MY Multiplayer: Wiki
Side
Kind

dxSetTextureEdge

Client

Chooses what an image shows when it is read outside its edges.

bool dxSetTextureEdge(texture|dui texture, string edge [, color borderColor = 0])

Parameters

NameTypeDescription
texturetexture|duiThe image: a texture, render target, screen source or dui.
edgestringwrap (repeats), mirror (repeats mirrored), clamp (stretches the edge), border (uses borderColor) or mirror-once.
borderColorcolorBorder colour for border, a tocolor value.default 0

Returns

true.

Example

local pattern = engineCreateTexture("images/stripes.png")
dxSetTextureEdge(pattern, "wrap")

addEventHandler("onClientRender", root, function()
    dxDrawImageSection(0, 0, 400, 100, 0, 0, 400, 100, pattern)
end)

See also