Is there anyway to get around this? Basically I am trying to rotate an arrow that I am using in place of the treeview's plus/minus expander. When I rotate it -45 degrees, the arrow loses its border, or appears blurry.
Here is my code for rotating the image:
Code:private Image RotateImage(Image myImage, int myAngle) { Bitmap b = new Bitmap(myImage.Width, myImage.Height); Graphics g = Graphics.FromImage(b); g.TranslateTransform((float)b.Width / 2, (float)b.Height / 2); g.RotateTransform(myAngle); g.TranslateTransform(-(float)b.Width / 2, -(float)b.Height / 2); g.DrawImage(myImage,new Point(0,0)); g.Dispose(); return myBitMap; }




Reply With Quote