日期:2014-05-17 浏览次数:21042 次
 Image bmp = Bitmap.FromStream(ms, true);
                int iHeight = bmp.Height;
                int iWidth = bmp.Width;
                Graphics g = Graphics.FromImage(bmp);
                g.DrawString(sDesc1, new Font("宋体", 32, FontStyle.Bold), Brushes.White, new PointF(10, 20));
                g.DrawString(sDesc2, new Font("宋体", 32, FontStyle.Bold), Brushes.White, new PointF(10, iHeight - 150));
                ms = new MemoryStream();
                bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);