[英]iPhone : Problem while capturing screen
I want to capture my screen view.我想捕获我的屏幕视图。 My app is in Landscape.
我的应用程序是横向的。 But while I try to capture the screen it capture view in portrait mode.
但是,当我尝试捕获屏幕时,它会以纵向模式捕获视图。
I want to make sure that screen capture is in landscape.我想确保屏幕截图是横向的。
What should I do?我应该怎么办?
Compare the hight and width of the capture and rotate it if required.比较捕获的高度和宽度,并在需要时旋转它。
Use following one使用以下一个
UIGraphicsBeginImageContext(CGSizeMake(480,320));
UIImage* result = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.