I implemented 90 degree clockwise/counter-clockwise rotation algorithm for Guile-PNG.
The procedures aren't perfect yet but they work.
I used this article as the reference:
https://dev.to/seanpgallivan/solution-rotate-image-cpp
I implemented 90 degree clockwise/counter-clockwise rotation algorithm for Guile-PNG. The procedures aren't perfect yet but they work. I used this article as the reference: 1 comment
|
It turned out that I can rotate an image with a much simpler algorithm when I working with a copy of an image:
https://github.com/artyom-poptsov/guile-png/commit/49b3578dfe816b194bd8c40bbafdc1a480ded9b9