Z
Z
Zefirot2021-05-28 12:08:08
C++ / C#
Zefirot, 2021-05-28 12:08:08

How to zoom in on a specific part of an image?

Let's say we have a picture of a person, we need to shift the focus to the wrist, for example, that is, enlarge the picture and change the coordinates so that the wrist is in the center of the screen, I thought to do this simply by placing the picture and changing the coordinates and size with the script, something does not work. ..
I set the coordinates alone, but in the inspector they are different, the coordinates differ from the resolution, so far I don’t know how to do it - so that the script enlarges the picture so that the desired fragment is in the center, regardless of the resolution ...
And we are not talking about a smooth change, at least get the right coordinates first (or set them correctly)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question