W / OpenGLRenderer:点太远了 [英] W/OpenGLRenderer: Points are too far apart
问题描述
当构造一个椭圆的向量时,我在LogCat中收到此警告消息:
When constructing a vector that is an ellipse, I am getting this warning message in LogCat:
W/OpenGLRenderer: Points are too far apart 4.000000
我很想知道这究竟是什么意思。我注意到在AOSP中有一个drawArc方法会抛出这个警告,但是,它没有清楚地表示究竟是什么意思。我需要调整矢量绘图吗?我是否会看到这些警告中的任何未来错误或错误?我怎样才能让这些警告消退?
I am interested in knowing what exactly this means. I noticed in the AOSP that there is a drawArc Method that throws this warning, however, it does not give a clear representation of what exactly is meant. Do I need to adjust my vector drawables? Will I see any future errors or drawing mistakes from these warnings? How can I get these warnings to subside?
推荐答案
警告点太远意味着A路径命令指定的椭圆太小而不能在端点之间形成弧。要处理这个问题, drawArc
方法会放大椭圆的大小,以便它可以在端点之间充分形成弧。
The warning "Points are too far apart" means the "A" path command specifies an ellipse that's too small to form an arc between the endpoints. To handle this, the drawArc
method enlarges the ellipse's size so that it can adequately form an arc between the endpoints.
例如,以下路径(指定太小而无法通过端点的1x1椭圆)将触发此警告:
For example, the following path (specifying a 1x1 ellipse that's too small to go through the endpoints) will trigger this warning:
M10 10 A 1 1 0 1 1 5 5
以下路径(指定10x10椭圆形相同的终点)不会:
While the following path (specifying a 10x10 ellipse with the same endpoints) will not:
M10 10 A 10 10 0 1 1 5 5
这篇关于W / OpenGLRenderer:点太远了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!