iphone石英画线周围边框
在iPhone石英线周围绘制(黑色)边框的最佳方法是什么?我在地图上的街道上画线,如果线是黄色的(这是一个合法的用例),它会与街道颜色混合。我可以做的一件事是将我的线条放在一条稍粗的黑线上,但这听起来不是很有效。
what's the best way to draw a (black) border around a line in quartz for iphone? I'm drawing lines on streets on map and if the line is yellow (which is a legit use case), it blends in with the street color. One thing I could do is lay my lines over a little thicker black line, but this doesn't sound very efficient.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说这是最好的方法,除非你有确凿的证据证明它效率低下。但我对此表示怀疑。描边和填充自定义形状可能更难实现,并且使用两种不同的描边宽度(和颜色)描画一条路径两次可能效率较低。
I'd say that's the best way to go, unless you have hard proof about it being inefficient. I doubt that though. Stroking and filling a custom shape is probably harder to implement, and likely less efficient stroking one path twice with two different stroke widths (and colors).