--- a/cocoaTouch/otherSrc/CommodityFunctions.m Fri Apr 09 21:08:27 2010 +0000
+++ b/cocoaTouch/otherSrc/CommodityFunctions.m Sat Apr 10 01:09:29 2010 +0000
@@ -41,3 +41,12 @@
[teamFile release];
[theTeam release];
}
+
+UIImage *mergeTwoImages (UIImage *firstImage, UIImage *secondImage) {
+ UIGraphicsBeginImageContext(firstImage.size);
+ [firstImage drawAtPoint:CGPointMake(0,0)];
+ [secondImage drawAtPoint:CGPointMake(0,-4)];
+ UIImage *resultImage = UIGraphicsGetImageFromCurrentImageContext();
+ UIGraphicsEndImageContext();
+ return resultImage; // autoreleased
+}