Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我现在正在创建一个具有自由手绘功能的应用程序。我想添加浮雕和/或模糊效果。目前我正在使用UIBezierPath'sstrokeWithBlendMode来画线。
UIBezierPath
strokeWithBlendMode
请建议我添加这些效果的方法。
最简单的方法是创建一个浮雕图像并将其UIColorWithPatternedImage用于您的 UIBezierPath 的存储颜色。
UIColorWithPatternedImage
这同样适用于模糊效果。
然而,找到一个图像以创建像浮雕一样的外观是一个 UI 挑战。