actually I try to learn to program with C# and with Windows Form.
For rotating pixel of an image there are two possibilities.
Rotating every pixel around the centre by using formula for rotating tranformation. (sounds clear for me)
Normally I read in row by row of an image with 256x256 pixels for example with:
for (int y = 1; y < 256; y++) // Heigth { for (int x = 1; x < 256; x++) //Width { Color pixelcolor = bitmap.GetPixel(x, y); .....bitmap.SetPixel(x, y, pixelcolor); } }
I would like to read just in my "example" above row by row but with an angle. But how would it be if the rotation is for example be 14 degree? for 90,180,270 degree I would be able to improvise something.
Thanks for trying to help me!