为什么黑色 s:Line 的边缘会出现灰色像素?
这是我正在使用的线:
<s:Line x="25" y="22" width="42">
<s:stroke>
<s:SolidColorStroke color="black" weight="2" />
</s:stroke>
</s:Line>
结果是一条宽度为 44 的黑线,线的每一端都有两个灰色像素(两个垂直线的顶部像素是灰色的)。 如何使线条宽度为 42 像素且没有灰色像素? 我找到的当前解决方案是使用两行,就像上面的 weight="1" 一样,但我希望有更好的解决方案:]
提前致谢,
Blaze
This is the Line i'm using:
<s:Line x="25" y="22" width="42">
<s:stroke>
<s:SolidColorStroke color="black" weight="2" />
</s:stroke>
</s:Line>
The result is a black line with width 44 and two gray pixels on each end of the line (the top pixels of the two vertical are gray).
How can i make the line 42 pixels in width and without gray pixels?
The current solution i've found is to use two lines one over the other like the one above with weight="1" but i hope there is a better one :]
Thanks in advance,
Blaze
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的一个朋友刚刚告诉了我答案。他在这里没有帐户,所以我认为在这里发布他的答案会很有帮助。
默认情况下,该上限属性为圆形。
PS 致版主:如果您认为它没有价值,请删除整个问题。这并不是试图通过我自己的答案来得分:]
A friend of mine just told me the answer. He doesn't have an account here so i thought it would be helpful to post his answer here.
That caps property is round by default.
P.S. To the moderators: please remove the whole question if you think it has no value. It's not an attempt to get points by my own answers :]