开发者

Overlay layer on photo, and export result at higher resolution than the native display

I want to take a photo with the device's camera, overlay a CALayer on top of it, and export the photo at the native resolut开发者_如何学Cion of the device's camera.

The best solution i could come up with so far, was to overlay the CALayer on top of the UIView, and capture the current view state using [CALayer renderInContext:]. However the result of this will be at the devices native screen resolution, not the original resolution of the camera.

Any better suggestions?

Thanks as always


What you actually want to do in this situation is draw the image offscreen using core graphics. Slightly more complicated, but the best solution I have found.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜