Android的android.graphics.Path宽度限制在2036? [英] Android android.graphics.Path width limited to 2036?

查看:204
本文介绍了Android的android.graphics.Path宽度限制在2036?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想绘制一个路径很长的线。该生产线是正确显示,直到到2036 X的目标价值。

I am trying to draw a very long line with a Path. The line is correctly displayed up until to a x target value of 2036.

当我打电话path.lineTo(2037,Y)是不绘制整个路径。到canvas.drawPath(路径,涂料)的调用什么也不做。

when i call path.lineTo(2037, y) the entire path is is not drawn. The call to canvas.drawPath(path, paint) does nothing.

有一个问题,我不知道的?

Is there a problem i am not aware of?

在第二个音符......当我画点的通过canvas.drawLines相同的序列(浮动[],油漆)的线条绘制正确,但他们没有抗锯齿。是否与抗锯齿和drawLines问题?

On a second note... when i draw the same sequence of points via canvas.drawLines(float[], paint) the lines are correctly drawn but they are not antialiased. Is there a problem with antialiasing and drawLines?

推荐答案

有与硬件加速的限制:一个路径只能是大约2048像素宽和高上最GPU的

There is a limitation with hardware acceleration: a Path can only be about 2048 pixels wide or high on most GPUs.

行抗锯齿应的Andr​​oid 3.2的工作与硬件加速。

Line anti-aliasing should work as of Android 3.2 with hardware acceleration.

这篇关于Android的android.graphics.Path宽度限制在2036?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆