cocoaTouch/otherSrc/CommodityFunctions.m
changeset 3330 987ec27b6042
parent 3325 652a8ebdf667
child 3335 2520ee7a5484
--- 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
+}