Páll Ólafsson
10/26/2004 3:13:00 PM
Hi
Im creating bitmap images from my controls in runtime. Im
using the BitBlt function but my images are blurry (edges
are blurry)? Does anyone know why it happens?
this is my code?
Graphics g1 = targetControl.CreateGraphics();
Bitmap bmp = new Bitmap
(targetControl.Width,targetControl.Height, g1);
bmp.SetResolution(600,300);
Graphics g2 = Graphics.FromImage(bmp);
IntPtr dc1 = g1.GetHdc();
IntPtr dc2 = g2.GetHdc();
BitBlt(dc2, 0, 0, this.ClientRectangle.Width,
this.ClientRectangle.Height, dc1, 0, 0,
13369376); //13369376
g1.ReleaseHdc(dc1);
g2.ReleaseHdc(dc2);
Regards
Palli