What is the resolution of a photo taken with an iPhone 4 camera?

In specifications

IPhone 4 screen resolution and pixel density * iPhone 4 has a screen resolution of 960 × 640 pixels, which is twice as much as previous iPhone models

As we know, when we code this,

CGImageRef screenImage = UIGetScreenImage();
CGRect fullRect = [[UIScreen mainScreen] applicationFrame];
CGImageRef saveCGImage = CGImageCreateWithImageInRect(screenImage, fullRect);

saveCGImage will have a size (320,480), my question is, what about the iPhone 4? Is it (640,960)?

Another question is about the black image in thumb mode, when you open Photo.app, if so,

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 you open "Photo.app" in the thumb view, these images look black, when you click on it to see the details, this is normal. Any solutions for this problem now?

Thank you for your time.

update questions:

UIGetScreenImage() iPhone 4, 320x480?

+3
2

Falk Lumo:

iPhone 4:

  • 5.0 (2592 x 1936)
  • 1/3.2 "CMOS-
  • 4: 3
  • 35 : 7,64
  • ISO 80 ( )
  • 3,85
  • f/2.8
  • : ,

35- :

  • 30 f/22
+6

, 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 ) - 2048 x 1536

  • iPhone 2G/3G (2 MP) - 1600 x 1200

+3

Source: https://habr.com/ru/post/1755085/


All Articles