我正在使用Graphics.DrawImage()方法在PictureBox上绘制图像。绘制图像的背景应该是透明的,这样它就不会绘制在由图形绘制的其他东西之上。代码如下所示:
Image Icon = Image.FromFile(@"C:\\Dieroller\Die Icons\d4.jpg");
//Icon.SetColorToTransparant(White); //This is what I which would work.
Graphics.DrawImage(Icon, Location);
任何sugestions?