How to use UIGetScreenImage

I would like to be able to do real-time analysis of the image taken by the camera. I saw that we are now allowed to use the undocumented UIGetScreenImage function. However I am unable to use it, I have the following warning:

implicit function declaration 'UIGetScreenImage'

any idea to solve this?

Thanks in advance!

Yours faithfully,

0


a source to share


1 answer


You need to deliver a prototype

CGImageRef UIGetScreenImage(void);

      

in the source code (or some common headers).




Note that you want the CGImageRelease

result UIGetScreenImage

, even if it is a "Get" function.

+2


a source







All Articles