iphone石英画线周围边框

发布于 2024-08-18 11:16:38 字数 113 浏览 2 评论 0原文

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-08-25 11:16:38

我可以做的一件事是将我的线条放在稍粗的黑线上,但这听起来不是很有效。

我想说这是最好的方法,除非你有确凿的证据证明它效率低下。但我对此表示怀疑。描边和填充自定义形状可能更难实现,并且使用两种不同的描边宽度(和颜色)描画一条路径两次可能效率较低。

One thing I could do is lay my lines over a little thicker black line, but this doesn't sound very efficient.

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文