Page 1 of 1

(Ruby) Pen alignment fails ?

Posted: Sat Nov 24, 2012 9:03 pm
by unkargherth
It seems that it works for the example in the manual ( page 170) but fails for other shapes, an arc in the example below
PenAlignment.fsm
(442 Bytes) Downloaded 1129 times

Re: (Ruby) Pen alignment fails ?

Posted: Sat Nov 24, 2012 10:53 pm
by trogluddite
I would guess that is probably only works for closed shapes (i.e ones that you can fill with colour).

Re: (Ruby) Pen alignment fails ?

Posted: Sat Nov 24, 2012 11:20 pm
by Nubeat7
yes, i tried rect, round rect ellipse and pie - these are working but i didn`t check polygon and closed curve...

Re: (Ruby) Pen alignment fails ?

Posted: Sat Nov 24, 2012 11:39 pm
by Nubeat7
you could do a GraphicsPath - when you addArc it dont works but when you do close it with closeFigure it works!

Re: (Ruby) Pen alignment fails ?

Posted: Sun Nov 25, 2012 12:57 am
by unkargherth
Probably my initial guest/understanding on what means "inside" was mistaken. I supposed that Inside meant "within the limits of the area/rectangle defined, not in relation to a closed "DRAWN" shape

I was expecting this "inside" feature free's me to do again and again the boring "Area resize" that we got in SM for years

My mistake... I admit