Hi,
I'm trying to create a forum signature for my users(image type),I have the background image and I can easily add text to it and I'd like to show their avatar which is a ".jpg" file in that background image but I'm not sure if I'm using the right method. Here is my test code:
Bitmap bmp = new Bitmap(@"c:\users\soroush\desktop\bg.jpg");
Graphics g = Graphics.FromImage(bmp);
g.SmoothingMode = SmoothingMode.AntiAlias;
g.DrawString("test", new Font("Tahoma", 11), SystemBrushes.WindowText, 20, 10);
System.Drawing.Image avatar = System.Drawing.Image.FromFile(@"c:\users\soroush\desktop\avatar.jpg");
g.DrawImage(avatar, 100, 100);
Response.ContentType = "image/jpeg";
bmp.Save(@"c:\users\Soroush\desktop\test.jpg");
...
Go to the complete details ...