title: Apply a transform to a UIImage when drawing
body: <p>Trying to superimpose a smaller image which may be scaled or rotated onto a lager image:</p>
  
  <pre><code>+ (UIImage*)addToImage:(UIImage *)baseImage newImage:(UIImage*)newImage atPoint:(CGPoint)point transform:(CGAffineTransform)transform {
  
      UIGraphicsBeginImageContext(baseImage.size);
      [baseImage drawInRect:CGRectMake(0, 0, baseImage.size.width, baseImage.size.height)];
  
      [newImage drawAtPoint:point];
      //How would I apply the transform?
  
      UIImage* result = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
  
  return result;
  }
  </code></pre>
  
  <p>How would I apply the CGAffineTransform to newImage in this context?</p>