什么是FILL_AND_STROKE的地步? [英] What's the point of FILL_AND_STROKE?

查看:184
本文介绍了什么是FILL_AND_STROKE的地步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的福利局在这里,所以我尝试了android图形类。
我想画一些圆弧/圆圈填充颜色和黑色轮廓。
该涂料类有FILL_AND_STROKE一种风格,但似乎并没有被设置填充色与笔触颜色的方法。所以,据我可以告诉它一样填?

Android newb here, so I'm trying out the android graphics classes. I wanted to draw some arcs/circles with a fill color and black outline. The Paint class has a style for FILL_AND_STROKE, but there doesn't seem to be a way to set the fill color vs. stroke color. So as far as I can tell it's the same as FILL?

那么,有什么FILL_AND_STROKE点,如果你不能设置一个单独的填充和描边颜色?
我还没有设法找到一个很好的解释。

So what's the point of FILL_AND_STROKE if you can't set a separate fill and stroke color? I haven't managed to find a good explanation.

(我首先做一个填充,那么中风解决了我的简单的问题,自然)

(I solved my simple problem by doing a fill first, then a stroke, naturally)

编辑:
我遇到了这个错误报告:<一href=\"http://$c$c.google.com/p/android/issues/detail?id=4086\">http://$c$c.google.com/p/android/issues/detail?id=4086

评论4和5似乎意味着FILL_AND_STROKE是基本相同FILL和在2.2它将被固定。我猜他们会添加一个新的颜色?

Comment 4 and 5 seem to imply that FILL_AND_STROKE is basically the same as FILL and it will be 'fixed' in 2.2. I guess they'll add a new color?

推荐答案

据我所知:FILL填充你的圈子,而FILL_AND_STROKE还提请边界。如果增加中风的大小,它应该产生不同的圈子的大小(唯一的视觉!)

afaik: FILL fills your circle, while FILL_AND_STROKE also draws the border. If you increase the size of the stroke, it should result in different circles sizes (only visual!)

想一想:你画的手一个圆圈用小型铅笔。半径是你想要的。如果现在采取一个大的画笔,再画出的圆圈,你的半径更大...(我希望它可以理解O.o)

Think about this: you draw a circle by hand with a small sized pencil. The radius is what you wanted. If you now take a big brush and draw the circle again, your radius is much bigger... (i hope its understandable O.o )

这篇关于什么是FILL_AND_STROKE的地步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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