Re: [android-developers] drawLine problem with Paint.StrokeWidth = 1

2011-03-22 Thread brian purgert
Less then 1 is always just one pixel even if it is zero. On Mar 22, 2011 12:43 PM, "TreKing" wrote: > On Mon, Mar 21, 2011 at 6:28 AM, ncalvet wrote: > >> Can anyone bring some light on this or should I submit this issue at >> http://code.google.com/p/android/issues/list ? >> > > Maybe it's anti-

Re: [android-developers] drawLine problem with Paint.StrokeWidth = 1

2011-03-22 Thread TreKing
On Mon, Mar 21, 2011 at 6:28 AM, ncalvet wrote: > Can anyone bring some light on this or should I submit this issue at > http://code.google.com/p/android/issues/list ? > Maybe it's anti-aliasing or rounding issue? Try turning anti-aliasing off. --

[android-developers] drawLine problem with Paint.StrokeWidth = 1

2011-03-21 Thread ncalvet
Hello, I think I hit a nasty bug. The problem is that nearly horizontal lines with a slight gradient and using a Paint with StrokeWidth = 1 are not plotted, for example: public class MyControl extends View { public MyControl(Context context) { super(context);