Draw lines with Glow effect in iPad App

后端 未结 2 702
夕颜
夕颜 2021-01-22 17:44

I have integrate draw line in my application i have not used OpenGL or any other similar framework.

So now i want to give glow effect to their lines so how

2条回答
  •  盖世英雄少女心
    2021-01-22 18:11

    Set the shadow in your graphics context to have a zero size offset, a blur of around 6-10 (change according to taste) and the same colour as your stroke colour. This will give all subsequent drawing a glow effect. The command is

    CGContextSetShadowWithColor()
    

    Documented here.

提交回复
热议问题