SkyEagle888
SkyEagle888

Reputation: 1009

The correct scale of taken photo and overlay image in IOS 4 on iPhone 4?

I am making a Camera application with overlay frame. That's what I did:

After picture is taken, here is what I did: - Resize and draw the taken image (1936 x 2592) to 640 x 960 in currentContext - Draw the overlay frame (320 x 480) to that 640 x 960 currentContext

But I found that: - scale is not that right - the frame appeared moved towards the top edge for about 2x pixels

Is there any hint/solution about this issue ?

Upvotes: 1

Views: 665

Answers (1)

Andrei G.
Andrei G.

Reputation: 1740

1936x2592 gives you aspect ratio of 0.74
640x960 gives you aspect ratio of 0.66

640x856 (320x428) would be the correct image size to preserve aspect ratio.

hope it helps...

Upvotes: 1

Related Questions