iPhone 4相机拍摄的照片分辨率是多少?
在规格中,
iPhone 4 屏幕分辨率&像素 密度 * iPhone 4的屏幕分辨率为960×640像素,是iPhone 4的两倍 之前的 iPhone 型号
正如我们所知,当我们这样编码时,
CGImageRef screenImage = UIGetScreenImage();
CGRect fullRect = [[UIScreen mainScreen] applicationFrame];
CGImageRef saveCGImage = CGImageCreateWithImageInRect(screenImage, fullRect);
saveCGImage 的大小将为 (320,480),我的问题是 iPhone 4 怎么样?那是(640,960)吗?
另一个问题是当您打开 Photo.app 时拇指视图中的黑色图像,如果像这样编码,
CGImageRef 屏幕图像 = UIGetScreenImage();
CGImageRef saveCGImage = CGImageCreateWithImageInRect(screenImage, CGRectMake(0,0,320,460)); // please note, I used 460 instead of 480
问题是,当打开“Photo.app”时,在拇指视图中,这些图像显示为黑色,当单击它查看详细信息时,没关系。 现在这个问题有什么解决办法吗?
感谢您抽出时间。
更新问题:
当您调用 UIGetScreenImage() 来捕获 iPhone 4 中的屏幕时,这也是 320x480 吗?
In specs,
iPhone 4 screen resolution & pixel
density
* iPhone 4 has a screen resolution of 960×640 pixels, which is twice that of
the prior iPhone models
As we know, when we code like this,
CGImageRef screenImage = UIGetScreenImage();
CGRect fullRect = [[UIScreen mainScreen] applicationFrame];
CGImageRef saveCGImage = CGImageCreateWithImageInRect(screenImage, fullRect);
the saveCGImage will have size (320,480), my question is how about iPhone 4 ? Is that (640,960) ?
Another question is about black image in thumb view when you open Photo.app if coding like this,
CGImageRef screenImage =
UIGetScreenImage();
CGImageRef saveCGImage = CGImageCreateWithImageInRect(screenImage, CGRectMake(0,0,320,460)); // please note, I used 460 instead of 480
The problem is that when open "Photo.app", in the thumb view, those images are view as black, when clicking it to see details, that is okay.
Any solution for this issue now ?
Thanks for your time.
update questions:
When you invoke UIGetScreenImage() to capture screen in iPhone 4, is that also 320x480 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自Falk Lumo:
From Falk Lumo:
iOS 设备拍摄的照片分辨率,
iPhone 6/6+、iPhone 5/5S、iPhone 4S(8 MP) - 3264 x
2448 像素
iPhone 4、iPad 3、iPodTouch(5 MP) - 2592 x 1936 像素
iPhone 3GS(3.2 MP) - 2048 x 1536 像素
iPhone 2G/3G(2 MP) - 1600 x 1200 像素
Photo resolution taken by iOS devices,
iPhone 6/6+, iPhone 5/5S, iPhone 4S(8 MP) - 3264 x
2448 pixels
iPhone 4, iPad 3, iPodTouch(5 MP) - 2592 x 1936 pixels
iPhone 3GS(3.2 MP) - 2048 x 1536 pixels
iPhone 2G/3G(2 MP) - 1600 x 1200 pixels