Pixel:setNinePatch

Revision as of 08:20, 27 August 2019 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2019.9<br/> '''<translate>Class</translate>:''' Pixel<br/> === <tran...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2019.9
Class: Pixel

Description

Enable 9-patch texture rendering with the specified parameters.

 Pixel:setNinePatch(vl,vr,vt,vb,tl,tr,tt,tb)
 Pixel:setNinePatch(l,r,t,b) -- Use the same values for v* and t*
 Pixel:setNinePatch(vmargin,tmargin) -- Use the same values for all borders, but differentiate rendered and texture values
 Pixel:setNinePatch(margin) -- Use the same value for all

Parameters

vl: (number) left size of the rendered dynamic area
vr: (number) right size of the rendered dynamic area
vt: (number) top size of the rendered dynamic area
vb: (number) bottom size of the rendered dynamic area
vl: (number) left size of the texture dynamic area
vr: (number) right size of the texture dynamic area
vt: (number) top size of the texture dynamic area
vb: (number) bottom size of the texture dynamic area