これが私の機能です。iOSで2つの写真をマージする既知の方法です:
- (UIImage * ) mergeSubjectToPlancheAvantGrabcut: (UIImage *)planche
{
NSLog(@"mergeSubjectToPlancheAvantGrabcut START");
UIGraphicsBeginImageContextWithOptions(CGSizeMake(planche.size.width , planche.size.height), NO, 1);
[planche drawAtPoint: CGPointMake(0,0)];
[self.imageViewSubject.image drawAtPoint: CGPointMake(0 , 0)
blendMode: kCGBlendModeClear // you can play with this
alpha: 1]; // 0 - 1
NSLog(@"mergeSubjectToPlancheAvantGrabcut END");
UIImage *answer = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return answer;
}
私が言ったように、ios6では動作しますが、ios 7では動作しません:(
何か案が ?
ありがとう