相关疑难解决方法(0)

目标C:使用UIImage进行描边操作

我正在尝试为我的画笔应用纹理,但我真的很难弄清楚它是如何完成的.

这是我输出的图像.

我使用了一个UIImage,只是按照屏幕上的触摸,但当我快速滑动时,结果在右侧"W",而在左侧,这是我慢慢滑动的结果.

在此输入图像描述

我尝试使用CGContextMoveToPointCGContextAddLineToPoint我不知道如何应用纹理.

是否可以使用UIImage作为笔触纹理?

这是我的代码

    UIImage * brushImageTexture = [UIImage imageNamed:@"brushImage.png"]; 
    [brushImagetexture drawAtPoint:CGPointMake(touchCurrentPosition.x, touchVurrentPosition.y) blendMode:blendMode alpha:1.0f];
Run Code Online (Sandbox Code Playgroud)

iphone core-graphics objective-c ipad ios

2
推荐指数
1
解决办法
1923
查看次数

标签 统计

core-graphics ×1

ios ×1

ipad ×1

iphone ×1

objective-c ×1