M
M
Michael Kim2017-01-02 18:57:24
Java
Michael Kim, 2017-01-02 18:57:24

How can I make the captured photo and camera preview match?

There is a SurfaceView which displays a preview from the camera.
Here:
c984f63229634128834edcafc42d6fce.png
I take a photo, it turns out to be larger than a preview:
00101d56ecc94c0998264623e2a0858a.png
I understand why this is so: the resolution in which the camera shoots and the preview sizes are different. But how to solve the problem if the camera does not support resolution with the same aspect ratio as the surfaceview?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ipokos, 2017-06-10
@cluberr

In the function itself, you have no syntax errors at first glance.
I can assume that you are passing the wrong arguments or in the wrong form.
What do you get in $rate_nb and $rate_sum and what is their data type?
I assume that the get_post_meta function is from Wordpress, it can return both a string and an array, or false

D
Dmitry Tallmange, 2017-06-10
@p00h

Nothing works for me. What to do?
© Anonymous

Perhaps you can describe the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question