-1
我喜歡使白色背景透明。但是有些白人不會被刪除。我如何去除其他類似的白色?如何使圖像背景透明並可以調整模糊係數?
我的代碼 -
string currentPath = Environment.CurrentDirectory;
int width = pictureBox1.Width;
int height = pictureBox1.Height;
Bitmap bm = new Bitmap(width, height);
pictureBox1.DrawToBitmap(bm, new System.Drawing.Rectangle(0, 0, width, height));
bm.MakeTransparent(System.Drawing.Color.White);
System.Drawing.Image img = (System.Drawing.Image)bm;
img.Save(currentPath + "\\temp\\logo.png", ImageFormat.Png);
聽起來像是你想Alpha透明度。 – leppie