C#图像处理一、各种旋转、改变大小注意:先要添加画图相关的using引用。向右旋转图像90。代码如下:privatevoidForml_Paint(objectsender,System.Windows.Forms.PaintEventArgse)Graphicsg=e.Graphics;Bitmapbmp=newBitmap(rama.jpg);加载图像g.FillRectangle(Brushes.White,this.ClientRectangle);/填充窗体背景为白色PointdestinationPoints=newPoint(100,0),/destinationforupper-leftpointoforiginalnewPoint(100,100),/destinationforupper-rightpointoforiginalnewPoint(0,0);/destinationforlower-leftpointoforiginalg.DrawImage(bmp,destinationPoints);