[RESOLVED] c# rotate image
hello
the title says everything, i want to rotate an image but it dont rotate around his center it rotates in a circle around the form.
Code:
for(int i=0;i<500;i++)
{
Image m=Image.FromFile("C:/p1.png");
using(Graphics g=this.CreateGraphics())
{
g.TranslateTransform(m.Width/2,m.Height/2);
g.RotateTransform(i);
g.TranslateTransform(-m.Width/2,-m.Height/2);
g.DrawImage(m,new Point(100,100));
}
}
if I put in DrawImage(m,0,0) i works great but i dont want to rotate the image in the corner.
sorry for the english but I think you understud what I ask :)
Re: [RESOLVED] c# rotate image
this is a method i found on the internet, you can give a try. a way of rotating an image