猛跑小猪
DrawImage 时按照目标形状给定矩形框大小即可,下面是MSDN上的代码:Bitmap myBitmap = new Bitmap("Spiral.png");Rectangle expansionRectangle = new Rectangle(135, 10, myBitmap.Width, myBitmap.Height);Rectangle compressionRectangle = new Rectangle(300, 10, myBitmap.Width / 2, myBitmap.Height / 2);myGraphics.DrawImage(myBitmap, 10, 10);myGraphics.DrawImage(myBitmap, expansionRectangle);myGraphics.DrawImage(myBitmap, compressionRectangle);