在规范中,
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
众所周知,当我们这样编码时,
CGImageRef screenImage = UIGetScreenImage();
CGRect fullRect = [[UIScreen mainScreen] applicationFrame];
CGImageRef saveCGImage = CGImageCreateWithImageInRect(screenImage, fullRect);
saveCGImage 的大小为 (320,480),我的问题是 iPhone 4 怎么样?那是(640,960)吗?
另一个问题是当您打开 Photo.app 时拇指 View 中的黑色图像,如果像这样编码,
CGImageRef screenImage = UIGetScreenImage();
CGImageRef saveCGImage = CGImageCreateWithImageInRect(screenImage, CGRectMake(0,0,320,460)); // please note, I used 460 instead of 480
问题是,当打开“Photo.app”时,在缩略图 View 中,这些图像显示为黑色,当单击它查看详细信息时,没关系。 现在这个问题有解决办法吗?
感谢您的宝贵时间。
更新问题:
当您调用 UIGetScreenImage() 来捕获 iPhone 4 中的屏幕时,它也是 320x480 吗?
最佳答案
来自Falk Lumo :
iPhone 4 main camera:
- 5.0 Mpixels (2592 x 1936)
- 1/3.2" back-illuminated CMOS sensor
- 4:3 aspect ratio
- 35 mm film camera crop factor: 7.64
- Low ISO 80 (or better)
- 3.85 mm lens focal length
- f/2.8 lens aperture
- Autofocus: tap to focus
Equivalent 35mm film camera and lens:
- 30 mm f/22
关于iphone - iPhone 4相机拍摄的照片分辨率是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3270202/