Rotating image in C#
-
Hi all C# Gurus, Is it possible to rotate images using GDI or anything else. If yes (it must be) then please guide me through the process. Also, it would be nice if anyone can tell me how to read from XML files. Or alternately, please let me know any article on the same which i have surely missed :). Thanks in advance. Any help will be highly appreciated. *** Who said nothing is impossible? I have been doing it for a long time ***
-
Hi all C# Gurus, Is it possible to rotate images using GDI or anything else. If yes (it must be) then please guide me through the process. Also, it would be nice if anyone can tell me how to read from XML files. Or alternately, please let me know any article on the same which i have surely missed :). Thanks in advance. Any help will be highly appreciated. *** Who said nothing is impossible? I have been doing it for a long time ***
Hello!! Well about rotate images i know a library in C# where you can draw many figures and insert images and you can rotate, scale and a lot more it's pretty cool: http://www.cs.umd.edu/hcil/piccolo/[^] Regards, Alberto Martinez
-
Hi all C# Gurus, Is it possible to rotate images using GDI or anything else. If yes (it must be) then please guide me through the process. Also, it would be nice if anyone can tell me how to read from XML files. Or alternately, please let me know any article on the same which i have surely missed :). Thanks in advance. Any help will be highly appreciated. *** Who said nothing is impossible? I have been doing it for a long time ***
An easy way to draw rotated image is to use transformations: Graphics g = ...; g.RotateTransform(angle); g.DrawImage(...) if you want to rotate around any point, you can use matrix. Matrix m = new Matrix(); m.RotateAt(angle, new PointF(x, y)); g.Transform = m; g.DrawImage(...);