N
N
Nikolay2017-09-12 20:29:35
PHP
Nikolay, 2017-09-12 20:29:35

How to crop image after rotation?

Hello!
The school curriculum is completely forgotten :(
Here is a picture to understand the task (an image can be not only a square, but also a rectangle):
de997058f4b146c1933e53cd6c32139b.pngWe have an image (yellow rectangle) that we rotate (green rectangle). We need to crop it along the red rectangle =)
Please tell me, how can I find out the indent (h) for cropping an image to "exclude" an empty space.
Thanks in advance :)

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