如何在UIImageView上绘制喷枪? [英] how to draw airbrush on UIImageView?

查看:90
本文介绍了如何在UIImageView上绘制喷枪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iphone的油漆应用初学者。

I am a beginner working on paint application on iphone.

为我的iphone应用添加新工具,名为airbrush ...

adding new tool for my iphone App called airbrush...

将喷洒在UIImageView上。任何人都可以帮我解决如何使用它。

which will spray on UIImageView. can any one help me out how to work with it.

推荐答案

我想你可能在寻找 CGContextBeginPath 及其相关函数。我不太确定如何定义一个新笔划,但我想它可以用 [UIColor colorFromImage:myImage] 之类的东西来处理。您应该查看Quartz 2D,尝试查看此处

I think you might be looking for CGContextBeginPath and its related functions. I am not quite sure how to define a new stroke but I imagine it can be handled with something like [UIColor colorFromImage:myImage]. You should look into Quartz 2D, try looking here.

/ Thomas

这篇关于如何在UIImageView上绘制喷枪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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