Resize, Translate and Rotate an Image inside a Texture

Hi dear Patrons,
with this algorithm you can resize, rotate and translate a texture inside another texture like you can do with the jit.matrix using the srcdimstart, srcdimend and dstdimend.
This could be pretty useful when you want to take just portion of an image and integrate it into another image, but remaining on the GPU.

[modified the algo to add the rotation]

Hope this is useful and see you soon!

Thank you for your support 

Become a patron to

Unlock 204 exclusive posts
Be part of the community
Connect via private message