tags:

views:

760

answers:

2

Hello,

I would like to be able to do a real time analysis of the image taken by the camera. I've seen that we are now allowed to use the undocumented UIGetScreenImage function. However, I do not succeed to use it, I have the following warning:

implicit declaration of function 'UIGetScreenImage'

any idea to solve this?

Thanks in advance!

regards,

A: 

You need to put a prototype

CGImageRef UIGetScreenImage(void);

in your source code (or some common headers).


Note that you need to CGImageRelease the result of UIGetScreenImage even it is a "Get" function.

KennyTM
it seemsit fix the issue. Thanks a lot!
AP
A: 

"I've seen that we are now allowed to use the undocumented UIGetScreenImage function." - Really? Care to give a reference?

St3fan
here is : http://www.tuaw.com/2009/12/15/apple-relents-and-is-now-allowing-uigetscreenimage-for-app-st/
AP