2011-04-28 84 views
0

我試圖根據球員面對的旋轉球員圖標。迷你地圖中的旋轉球員

   Image pImage = Image.FromFile("player.png"); 
       Bitmap pBitmap = new Bitmap(pImage.Width, pImage.Height); 
       Graphics gfx = Graphics.FromImage(pBitmap); 
       gfx.RotateTransform(10); 
       gfx.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; 
       gfx.DrawImage(pImage, new Point(0, 0)); 
       gfx.Dispose(); 

       g.DrawImage(pImage, 150 - RADAR_ICON_WIDTH/2, 150 - RADAR_ICON_HEIGHT/2, RADAR_ICON_WIDTH, RADAR_ICON_HEIGHT); 

下面的代碼不旋轉在所有:(在player.png(一arrowicon)僅指向上方隨時:(

+0

我編輯了代碼...請再看一看 – Jason94 2011-04-28 08:33:35

回答