我試圖呈現一個位圖,以保存到用戶的相冊,該相冊的分辨率必須高於320x480 iPhone屏幕(但仍在iOS內存限制內)。 但是,使用此代碼來創建上下文:如何創建和使用大於屏幕分辨率的圖像?
UIGraphicsBeginImageContext(CGSizeMake(finalImgWidth, finalImgHeight));
CGContextRef ctx = UIGraphicsGetCurrentContext();
或CG類似物:
CGContextRef ctx = CGBitmapContextCreate(rawData, finalImgWidth, finalImgHeight, bitsPerComponent, bytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast);
返回零上下文如果寬度或高度比大於分辨率320x480。
是否有任何其他方式來創建一個高分辨率的圖像?
注意:我已經知道如何正常繪製上下文並截取屏幕截圖。我需要一個解決方案來擴展到典型的照片分辨率。
結賬這個問題: http://stackoverflow.com/questions/9119889/how-to-display-an-image-that-is-bigger-than-the-phone- screen-dimensions – meetpd