2D pixel array rotation and scaling
Posted
by Betamoo
on Stack Overflow
See other posts from Stack Overflow
or by Betamoo
Published on 2009-12-24T13:21:33Z
Indexed on
2010/05/08
10:38 UTC
Read the original article
Hit count: 202
Hi
- I am working on C# program to process images ( given as int[,] )..
- So I have 2D array of pixels, and I need to rotate them around a point, then scale them down to fit the original array..
- I already found articles about using matrix to transform to a point and rotate then transform back..
- What remains is to scale the resultant image to fit an array of original size..
How that can be done? (preferably with 2 equations one for x and one for y )
Thanks in advance
© Stack Overflow or respective owner