tags:

views:

96

answers:

0

I can't found any solution to my problem:

I've a camera preview with some width and height (example: 720x480), then I overlay an image on the camera preview, when I take a shoot I add this image to the camera photo but the picture size (2048x1536) aren't the same width and height of camera preview, then X and Y of this image overlayed aren't the same X and Y showed on preview screen and the image isn't correctly positioned.

I tried to recalculate the new X and Y of the result image using:

finalX = (photoWidth * realX) / cameraWidth; finalY = (photoHeight * realY) / cameraHeight;

But still problem here. Any idea?

Thanks in advance.