B
B
B1dloKoder2018-02-15 19:19:27
JavaScript
B1dloKoder, 2018-02-15 19:19:27

How to get pixel data in canvas given rotation?

Dealt with canvas. I have coded myself a small image editor in which we can scale and rotate the image. I decided to add a change in the transparency of the image and ran into a problem. The area where the pixel data is taken does not take into account that the context is rotated. What should I do?
Maybe I'm wording it wrong, sorry. I hope the image helps to understand the essence of the problem. 5a85b2be47429731906733.png
Here is the app itself

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2018-03-14
@4elentano551

https://ru.wikipedia.org/wiki/%D0%9C%D0%B0%D1%82%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question