title: Drawing a PNG Image Into a Graphics Context for Blending Mode Manipulation
body: <p>I need to draw a series of PNGs into a <code>CGContext</code> so I can blend them together:</p>
  
  <pre><code>CGContextRef context = UIGraphicsGetCurrentContext();
  CGContextSetBlendMode(context, kCGBlendModeOverlay);
  </code></pre>
  
  <p>Currently I have my app working based on just drawing each image as a UIImageView and adding them as a subview to the view file via: <code>[self addSubview:someImageView]</code> ...but this doesn't allow for blending mode manipulation, right?</p>
  
  <p>Currently the UIImageView vars are being assigned via:</p>
  
  <pre><code>someImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image-name.png"]];
  </code></pre>
  
  <p>So I've tried replacing those with either of these with no luck:</p>
  
  <pre><code>[[UIImage imageNamed:@"image-name.png"] drawInRect:rect blendMode:kCGBlendModeOverlay alpha:1.0];
  </code></pre>
  
  <p>and this one needs a <code>CGImage</code> which I'm not sure how to make with the PNGs:</p>
  
  <pre><code>CGContextDrawImage(context, rect, someCGImage);
  </code></pre>
  
  <p>So what am I missing? These aren't being triggered by any interaction, they just need to load/draw when the app loads.</p>
  
  <p>Thanks for any leads. :)</p>