简体   繁体   English

如何在iPhone的Quartz中获得发光效果?

[英]How to get a glow effect in Quartz for the iphone?

I am searching for a glow effect in quartz 2d for the iphone. 我正在为iPhone寻找石英2d的发光效果。 I tried making lines with different alpha values to simulate glow but it didn't work... 我尝试用不同的Alpha值制作线条来模拟辉光,但效果不佳...

Can anyone help me with that ?? 有人可以帮我吗?

ps I'm making an app where the user can draw with glow. ps我正在制作一个用户可以发光的应用程序。 I have the basic lines, but no glow :( 我有基本的线条,但没有光泽:(

As far as I know, the Core Animation / Quartz 2D Compositing filters are currently not available in iOS. 据我所知,Core Animation / Quartz 2D Compositing滤镜目前在iOS中不可用。 http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html#//apple_ref/occ/instp/CALayer/compositingFilter , chapter: Special Considerations http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html#//apple_ref/occ/instp/CALayer/compositingFilter ,本章:特殊注意事项

But there may be some other ways you could achieve your glow effect using shadows: Adding glowing effect to the circle I hope this helped, kind regards... 但是可能还有其他一些方法可以使用阴影实现发光效果: 向圆中添加发光效果,希望这对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM