private void cmdPrint_Click(object sender, EventArgs e) { using (var bmp = new Bitmap(800, 600, System.Drawing.Imaging.PixelFormat.Format32bppArgb)) using (var g = System.Drawing.Graphics.FromImage(bmp)) { var canvas = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.P.CreateCanvas(g, 0, 0, 800, 600); vwport.PrintMe(canvas); bmp.Save("d:\\WImageTest\\testhtml.bmp"); } }
private void cmdPrint_Click(object sender, EventArgs e) { using (var bmp = new Bitmap(800, 600, System.Drawing.Imaging.PixelFormat.Format32bppArgb)) using (var g = System.Drawing.Graphics.FromImage(bmp)) { //var canvasInit = new PixelFarm.Drawing.CanvasInitParameters(); //canvasInit.externalCanvas = g; var canvas = new PixelFarm.Drawing.WinGdi.MyGdiPlusCanvas(0, 0, 800, 600);;// LayoutFarm.UI.GdiPlus.MyWinGdiPortal.P.CreateCanvas(0, 0, 800, 600, canvasInit); vwport.PrintMe(canvas); bmp.Save("d:\\WImageTest\\testhtml.bmp"); } }
public void Print(PixelFarm.Drawing.WinGdi.MyGdiPlusCanvas canvas) { viewportControl.PrintMe(canvas); }
public void Print(PixelFarm.Drawing.Canvas canvas) { viewportControl.PrintMe(canvas); }