Answer the question
In order to leave comments, you need to log in
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.
Here is the app itself
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question