我正在尝试为我的画笔应用纹理,但我真的很难弄清楚它是如何完成的.
这是我输出的图像.
我使用了一个UIImage,只是按照屏幕上的触摸,但当我快速滑动时,结果在右侧"W",而在左侧,这是我慢慢滑动的结果.

我尝试使用CGContextMoveToPoint和CGContextAddLineToPoint我不知道如何应用纹理.
是否可以使用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)