110,533
社区成员
发帖
与我相关
我的任务
分享
Rectangle destRect = new Rectangle(0, 0, 100,100);
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
e.Graphics.DrawImage(myimg, destRect, 0, 0, myimg.Width, myimg.Height, System.Drawing.GraphicsUnit.Pixel);
Matrix m=new Matrix();
m.RotateAt(180f, 50,50);
Rectangle destRect = new Rectangle(0, 0, 100,100);
e.Graphics.Transform = m;
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
e.Graphics.DrawImage(myimg, destRect, 0, 0, myimg.Width, myimg.Height, System.Drawing.GraphicsUnit.Pixel);