title: Objective C: Using UIImage for Stroking
body: <p>I am trying to apply a texture for my brush but i'm really having a hard time figuring how it is done.</p>
  
  <p>Here's the image of my output.</p>
  
  <p>I used an UIImage that just follows the touch on the screen but when i swipe it faster the result is on the right side "W", and on the left side that's the result when i swipe it slow.</p>
  
  <p><img src="https://i.stack.imgur.com/rWM5o.png" alt="enter image description here"></p>
  
  <p>i tried using the <code>CGContextMoveToPoint</code> and <code>CGContextAddLineToPoint</code> i don't know how apply the texture.</p>
  
  <p>Is it possible to use UIImage for the stroke texture? </p>
  
  <p>Here's my code</p>
  
  <pre><code>    UIImage * brushImageTexture = [UIImage imageNamed:@"brushImage.png"]; 
      [brushImagetexture drawAtPoint:CGPointMake(touchCurrentPosition.x, touchVurrentPosition.y) blendMode:blendMode alpha:1.0f];
  </code></pre>