bartender标签预览之图片方案
private string _bmp_path = Application.StartupPath + @“\exp.jpg”;
//显示图片 if (btFormat != null) { //Generate a thumbnail for it. btFormat.ExportImageToFile(_bmp_path, ImageType.BMP, Seagull.BarTender.Print.ColorDepth.ColorDepth24bit, new Resolution(407, 407 ), OverwriteOptions.Overwrite); System.Drawing.Image image = System.Drawing.Image.FromFile(_bmp_path); Bitmap NmpImage = new Bitmap(image); pictureBox.Image = NmpImage; image.Dispose(); } else { MessageBox.Show("生成图片错误", "操作提示"); }
效果