Advertisement
progrmor

Untitled

Jun 24th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1.     public void screenShot()
  2.  
  3.  
  4.     CGRect screenRect = UIScreen.getMainScreen().getBounds();
  5.         UIGraphics.beginImageContext(screenRect.getSize());
  6.         CGContext ctx = UIGraphics.getCurrentContext();
  7.  
  8.         ctx.fillRect(screenRect);
  9.         UIImage image = UIGraphics.getImageFromCurrentImageContext();
  10.         UIGraphics.endImageContext();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement