大家好,又见面了,我是你们的朋友全栈君。
C#把白色背景变成透明
代码如下
Image image;
image = Image.FromFile("1.jpg");
Bitmap bitmap = new Bitmap(image);
bitmap.MakeTransparent( Color.White );
bitmap.Save("2.jpg");
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/162692.html原文链接:https://javaforall.net