我被困与canvas.drawLines()。的Android drawLines - 线宽不同
我的应用程序显示跟踪OM地图视图,但所得到的线是可怕的。 有没有人看到这样的行为?即线条不具有相同的宽度,甚至不是“方形”,而是菱形,有时甚至消失!
我已经测试(){的drawLine()},而是和drawPath代替 - 同样的问题。
截图承担了10" 片剂1280×800,富士通。联想片剂显示了相同的。
http://jpegshare.net/c8/1d/c81daa6cff15e3d14cb1268679bb1af1.png.html
borderPaint = new Paint();
borderPaint.setAntiAlias(true);
borderPaint.setStrokeWidth(5);
borderPaint.setStyle(Paint.Style.STROKE);
borderPaint.setColor(Color.WHITE);
//borderPaint.setAlpha(190);
fillPaint = new Paint();
fillPaint.setAntiAlias(true);
fillPaint.setStyle(Paint.Style.STROKE);
fillPaint.setStrokeWidth(3);
fillPaint.setColor(Color.RED);
....
canvas.drawLines(linepoints, 0, linepoints_count, borderPaint);
canvas.drawLines(linepoints, 0, linepoints_count, fillPaint);
其中linepoints被的轨迹线阵列来绘制,每一行设置的4个浮点数。
嗯,我想出了我自己的问题。 – user2574421