iPhone: Get camera preview

后端 未结 3 1682
情话喂你
情话喂你 2020-12-08 12:39

I\'d like to get the image that is being displayed on the UIImagePickerController when user uses the camera. And when I get I want to process the image and display instead

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 13:12

    The unofficial call is:

    UIGetScreenImage()
    

    which you declare above the @implementation as:

    extern CGImageRef UIGetScreenImage();
    

    There may be a documented way to do this in 3.1, but I'm not sure. If not, please please file a Radar with Apple asking them to make some kind of screen grab access public!!!

    That uses your same AppleID you log in to the iPhone development portal with.

    Update: This call is not yet documented, but Apple explicitly has given the OK to use it with App Store apps.

提交回复
热议问题