iphone - How to take a screenshot when video playing? -


how take screen shot when video playing? used mpmovieplayercontroller video playing.

- (uiimage *) capturescreen  {     uiwindow *keywindow = [[uiapplication sharedapplication] keywindow];     cgrect rect = [keywindow bounds];     uigraphicsbeginimagecontext(rect.size);     cgcontextref context = uigraphicsgetcurrentcontext();     [keywindow.layer renderincontext:context];        uiimage *img = uigraphicsgetimagefromcurrentimagecontext();     uigraphicsendimagecontext();     return img; } 

Comments

Popular posts from this blog

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -