title: How to create a colored 1x1 UIImage on the iPhone dynamically?
body: <p>I would like to create a 1x1 UIImage dynamically based on a UIColor.</p>
  
  <p>I suspect this can quickly be done with Quartz2d, and I'm poring over the documentation trying to get a grasp of the fundamentals.  However, it looks like there are a lot of potential pitfalls:  not identifying the numbers of bits and bytes per things correctly, not specifying the right flags, not releasing unused data, etc.</p>
  
  <p>How can this be safely done with Quartz 2d (or another simpler way)?</p>