Antialiased text on transparent bitmap
I'd like to draw antialiased text on a transparent bitmap and have the antialiasing drawn as alpha blended pixels. This way, I can draw the bitmap onto any color surface (or an image, for that matter) and the antialiasing still looks fine. Here is a simplified sample showing the problem: protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); Bitmap bitmap = new Bitmap(this.Width, this.Height); Graphics g = Graphics.FromImage(bitmap); g.Clear(Color.Empty); g.DrawString("hello world", new Font(this.Font.FontFamily, 24), Brushes.Blue, new Point(50, 50)); e.Graphics.DrawImage(bitmap,