用手指显示照片的刮擦效果 [英] Show photo with SCRATCH OUT EFFECT by finger

查看:101
本文介绍了用手指显示照片的刮擦效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要您的帮助,以了解如何创建iPhone应用程序以显示具有划痕效果的照片.

I need your help to know how to create an iPhone application to show a photo with SCRATCH OUT EFFECT.

类似于本Flash教程中的效果 http://www.tutorial5.com/content/view/115/46/

Something like the effect in this flash tutorial http://www.tutorial5.com/content/view/115/46/

请帮助. 谢谢.

推荐答案

您可以使用CoreGraphics实施刮擦效果.

You can implement the scratch out effect by using CoreGraphics.

可抓取图像的子类UIView. 绘制可刮擦的图像,使用遮罩切出图像上被刮擦"的部分.

Subclass UIView for the scratchable image. Draw the scratchable image, use a mask to cut out the parts of the image that gets "scratched".

每次用户刮擦图像时,请进行刮擦,以使蒙版和图像得到更新.

Each time the user scratches the image, make it so the mask and the image gets updated.

github

这篇关于用手指显示照片的刮擦效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆