- private void MarkupImage(string image, string desc)
- {
- Bitmap bitmap = new Bitmap(Server.MapPath(image));
- bitmap = WindowsApplication1.Receipt.MarkupImage();
- bitmap = new Bitmap(800, 600);
- MemoryStream memStream = new MemoryStream();
- Graphics g = Graphics.FromImage(bitmap);
- g.FillRectangle(new SolidBrush(Color.White), 0, 0, bitmap.Width, bitmap.Height);
- g.DrawString("aaaaaaaaaaaaaaaaaaaaaaaa", new Font("Arial", 9, FontStyle.Bold), new SolidBrush(Color.Green), new PointF(0, 0));
- bitmap.Save(memStream, ImageFormat.Jpeg);
- memStream.WriteTo(Response.OutputStream);
- // Cleanup
- g.Dispose();
- bitmap.Dispose();
- }
Web GDI+显示图片
最新推荐文章于 2020-05-01 22:54:53 发布