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
| Name | Type | Description |
|---|---|---|
| texture | texture|dui | The image: a texture, render target, screen source or dui. |
| edge | string | wrap (repeats), mirror (repeats mirrored), clamp (stretches the edge), border (uses borderColor) or mirror-once. |
| borderColor | color | Border 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)