objective-c - iOS怎么给不规则图片轮廓添加阴影效果
伊谢尔伦
伊谢尔伦 2017-04-17 17:20:06
0
4
640

如题 怎么给一个不规则的图片的轮廓添加阴影效果?

例如说下图中的五角星,图片本身是方形,但我只想给图片中的五角星添加阴影;

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all (4)
刘奇

Does it have to be implemented in code? You can consider asking an artist to produce a picture

    左手右手慢动作

    ios--UIImageView adds borders and shadows
    http://www.aichengxu.com/view/32652

      黄舟

      Add a layer to redraw the five-pointed star

        迷茫

        Edit the background color to be transparent, load it into a bitmap in the program, and use CoreGraphics, shader and blending mode to draw a dark outline

        Offset a few pixels and draw the original bitmap again

        But this doesn’t make any sense in terms of engineering, it’s just “can do”

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!