旋轉圖像後如何合併旋轉圖像?我使用下面的代碼,它的工作很好,在圖像旋轉之前。如何解決這個問題。請幫幫我。提前致謝。
CGRect backgroundImageRect = CGRectMake(0.0, 0.0, itemSize.width, itemSize.height);
CGRect foregroundImageRect = CGRectMake(rsImageView.frame.origin.x, rsImageView.frame.origin.y, rsImageView.frame.size.width, rsImageView.frame.size.height);
[backgroundImageView.image drawInRect:backgroundImageRect];
[rsImageView.image drawInRect:foregroundImageRect];
overlappedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Ya.Merge旋轉後的圖像。 – Mani
對不起,我的意思是,圖像合併在設備方向? – akk
不適合定位。它是一個手動旋轉。 – Mani