Hi Erel.
B4XCanvas.DrawPath behave differently in B4A and B4J with Filled = False.
I haven't tested it ib B4i.
In B4A the Stroke is drawn on the path.
In B4J the Stroke is drawn insides the path.
Wish: same behaviour in all three products.
An image developped with B4J.
Looks quite different in B4A, with the same code!
Very annoying.
The code for the rounded rectangle example (cvsAct is a B4XCanvas):
B4XCanvas.DrawPath behave differently in B4A and B4J with Filled = False.
I haven't tested it ib B4i.
In B4A the Stroke is drawn on the path.
In B4J the Stroke is drawn insides the path.
Wish: same behaviour in all three products.
An image developped with B4J.
Looks quite different in B4A, with the same code!
Very annoying.
The code for the rounded rectangle example (cvsAct is a B4XCanvas):
B4X:
Private pthTest As B4XPath
Private rctTest As B4XRect
rctTest.Initialize(10dip, 450dip, 310dip, 500dip)
pthTest.InitializeRoundedRect(rctTest, 20dip)
cvsAct.Initialize(MainForm.RootPane)
cvsAct.DrawPath(pthTest, xui.Color_Blue, False, 9dip)
cvsAct.DrawPath(pthTest, xui.Color_Red, False, 2dip)