R
R
rasimzes2020-08-29 09:12:43
JavaScript
rasimzes, 2020-08-29 09:12:43

How to create a component that selects an area in an image?

I have a react project. And now the task is to create a component that will display a picture (hereinafter video). It's easy.
Now the tricky part, inside this component you need to make a functional that allows you to create a quadrilateral, the points of which should be able to move independently of each other. That is, it turns out that the selected area can be not only a rectangle, but a parallelogram, or even another bizarre shape. Ultimately, you will need to get the coordinates of the points.
I would be grateful for the direction for reflection, examples, articles, etc., because at the moment there is no folded picture of how to do this. Googling didn't give me exactly what I needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-08-29
@firedragon

Pull out from this article, there are sources below
https://habr.com/ru/post/439330/
b6caf930b026a203dbf9be6916ba943b.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question