예제 #1
0
 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");
         }
 }
예제 #2
0
 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");
         }
 }
예제 #3
0
 public void Print(PixelFarm.Drawing.WinGdi.MyGdiPlusCanvas canvas)
 {
     viewportControl.PrintMe(canvas);
 }
예제 #4
0
 public void Print(PixelFarm.Drawing.Canvas canvas)
 {
     viewportControl.PrintMe(canvas);
 }