Re: [Gambas-user] Drawing sector

2012-12-12 Thread Jussi Lahtinen
> > OK, it should be fixed in revision #5431. You don't have to play with > Paint.LineJoin anymore. > Yes, it works! Thanks! Jussi -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs

Re: [Gambas-user] Drawing sector

2012-12-11 Thread Benoît Minisini
Le 10/12/2012 22:23, Jussi Lahtinen a écrit : >> I think this issue is related to the Paint.LineCap and Paint.LineJoin >> properties. Try to play with them before drawing the pie, I think it >> will fix the drawing artifacts. >> > > Yes, either with Paint.Linejoin = Paint.LineJoinBevel or > Paint.L

Re: [Gambas-user] Drawing sector

2012-12-10 Thread Jussi Lahtinen
> I think this issue is related to the Paint.LineCap and Paint.LineJoin > properties. Try to play with them before drawing the pie, I think it > will fix the drawing artifacts. > Yes, either with Paint.Linejoin = Paint.LineJoinBevel or Paint.LineJoinRound everything works as expected. However Pain

Re: [Gambas-user] Drawing sector

2012-12-10 Thread Benoît Minisini
Le 10/12/2012 19:34, Jussi Lahtinen a écrit : > Yes, it makes difference. See screenshots. > > Jussi > > > > On Mon, Dec 10, 2012 at 8:19 PM, Fabien Bodard wrote: > >> haaa vector ... what a great thing for great things ... but not for small >> ones... >> >> does it do the same with a smaller line

Re: [Gambas-user] Drawing sector

2012-12-10 Thread Jussi Lahtinen
Yes, it makes difference. See screenshots. Jussi On Mon, Dec 10, 2012 at 8:19 PM, Fabien Bodard wrote: > haaa vector ... what a great thing for great things ... but not for small > ones... > > does it do the same with a smaller linewidth ? > > > > 2012/12/10 Jussi Lahtinen > > > OK, makes se

Re: [Gambas-user] Drawing sector

2012-12-10 Thread Fabien Bodard
haaa vector ... what a great thing for great things ... but not for small ones... does it do the same with a smaller linewidth ? 2012/12/10 Jussi Lahtinen > OK, makes sense. > One tiny thing more... > > Draw.Foreground = Color.Black > Draw.LineWidth = 3 > Draw.Circle(106, 106, 105) > > Draw.L

Re: [Gambas-user] Drawing sector

2012-12-10 Thread Jussi Lahtinen
OK, makes sense. One tiny thing more... Draw.Foreground = Color.Black Draw.LineWidth = 3 Draw.Circle(106, 106, 105) Draw.LineWidth = 1 Draw.FillStyle = Fill.Solid 'this draws very narrow sector Draw.FillColor = Color.Black Draw.Circle(106, 106, 105, Rad(359), Rad(360)) 'this draws little red

Re: [Gambas-user] Drawing sector

2012-12-09 Thread Benoît Minisini
Le 07/12/2012 14:28, Jussi Lahtinen a écrit : >> Fixed in revision #5415. >> > > Something is still different from the original behaviour. > I use same circle commands to draw pie chart and it still fails... > > Test output: > > Area num. 0: in rads; 0 to 0.89759700342775 > Area num. 1: in rads; 0.

Re: [Gambas-user] Drawing sector

2012-12-07 Thread Jussi Lahtinen
> Fixed in revision #5415. > Something is still different from the original behaviour. I use same circle commands to draw pie chart and it still fails... Test output: Area num. 0: in rads; 0 to 0.89759700342775 Area num. 1: in rads; 0.89759700342775 to 1.79519400685551 Area num. 2: in rads; 1.79

Re: [Gambas-user] Drawing sector

2012-12-06 Thread Benoît Minisini
Le 06/12/2012 23:51, Jussi Lahtinen a écrit : > Still something wrong... > > By this code I would expect to see two sectors each of them quarter of > whole circle, > now second one (blue) is half of circle. > > Draw.FillColor = Color.Red > Draw.Circle(106, 106, 105, 0, Rad(90)) > Draw.FillColor = C

Re: [Gambas-user] Drawing sector

2012-12-06 Thread Jussi Lahtinen
Still something wrong... By this code I would expect to see two sectors each of them quarter of whole circle, now second one (blue) is half of circle. Draw.FillColor = Color.Red Draw.Circle(106, 106, 105, 0, Rad(90)) Draw.FillColor = Color.Blue Draw.Circle(106, 106, 105, Rad(90), Rad(180)) Juss

Re: [Gambas-user] Drawing sector

2012-12-05 Thread Benoît Minisini
Le 05/12/2012 12:51, Benoît Minisini a écrit : > Le 02/12/2012 22:59, Jussi Lahtinen a écrit : >> At least latest revision has changed behaviour of circle keyword (in >> Qt4). >> >> This doesn't draw red sector, instead it seems to draw some part of it >> which doesn't start from x,y: >> >> Draw.Fo

Re: [Gambas-user] Drawing sector

2012-12-05 Thread Benoît Minisini
Le 02/12/2012 22:59, Jussi Lahtinen a écrit : > At least latest revision has changed behaviour of circle keyword (in Qt4). > > This doesn't draw red sector, instead it seems to draw some part of it > which doesn't start from x,y: > > Draw.Foreground = Color.Black > Draw.LineWidth = 1 > Draw.FillSty

[Gambas-user] Drawing sector

2012-12-02 Thread Jussi Lahtinen
At least latest revision has changed behaviour of circle keyword (in Qt4). This doesn't draw red sector, instead it seems to draw some part of it which doesn't start from x,y: Draw.Foreground = Color.Black Draw.LineWidth = 1 Draw.FillStyle = Fill.Solid Draw.FillColor = Color.Red Draw.Circle(x, y,