我需要生成背景透明,图上面只有问题,文字需要半透明
这是我的代码:  //Image img = Image.FromFile(@"e:\f.png");            Bitmap img = new System.Drawing.Bitmap(300, 300);
            img.MakeTransparent();
            Graphics g = Graphics.FromImage(img);            //Color bc=Color.(255,0,255);
            //g.Clear(ColorTranslator.FromHtml("#00FF00"));
            //g.Clear(Color.Transparent);
            
            Font font = new Font("Arial", 20, FontStyle.Bold);
            
            Color c = Color.FromArgb(50, Color.Red);            SolidBrush brush = new SolidBrush(c);
            
            g.DrawString("ssssss", font, brush, 150, 160);
            
            
            System.IO.MemoryStream ms = new System.IO.MemoryStream();
            img.Save(@"E:\11xoxo.png", System.Drawing.Imaging.ImageFormat.Png);
            
这是文字颜色:Color c = Color.FromArgb(50, Color.Red);
透明度50 红色
但生成出来的图 背景透明了 文字成了黑色 不透明