Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new HtmlPanel and sets a basic css for it's styling.
        /// </summary>
        public HtmlPanel(PixelFarm.Drawing.GraphicsPlatform p, int w, int h)
        {
            AutoScroll = true;
            BackColor  = SystemColors.Window;
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            this.gfxPlatform  = p;
            this.renderCanvas = gfxPlatform.CreateCanvas(0, 0,
                                                         this.canvasW = w, this.canvasH = h);
        }
Ejemplo n.º 2
0
        static PaintVisitor GetSharedPainter(LayoutFarm.HtmlBoxes.HtmlContainer htmlCont, PixelFarm.Drawing.Canvas canvas)
        {
            PaintVisitor painter = null;

            if (painterStock.Count == 0)
            {
                painter = new PaintVisitor();
            }
            else
            {
                painter = painterStock.Dequeue();
            }

            painter.Bind(htmlCont, canvas);
            return(painter);
        }
Ejemplo n.º 3
0
 public void Print(PixelFarm.Drawing.Canvas canvas)
 {
     viewportControl.PrintMe(canvas);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new HtmlPanel and sets a basic css for it's styling.
 /// </summary>
 public HtmlPanel(PixelFarm.Drawing.GraphicsPlatform p, int w, int h)
 {
     AutoScroll = true;
     BackColor = SystemColors.Window;
     SetStyle(ControlStyles.ResizeRedraw, true);
     SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     this.gfxPlatform = p;
     
     this.renderCanvas = gfxPlatform.CreateCanvas(0, 0,
         this.canvasW = w, this.canvasH = h);
 }
Ejemplo n.º 5
0
 public void SetupCanvas(PixelFarm.Drawing.Canvas canvas)
 {
     bridge.SetupCanvas(canvas);
 }