Exemplo n.º 1
0
 public void SaveTo(Html5Context c, bool p)
 {
     c.Font     = this.Font;
     c.LineDash = this.LineDash;
     c.Current  = this.Current;
     c.Context  = this.Context;
     c.Pattern  = this.Pattern;
     c.CTM      = new Matrix(this.CTM);
 }
Exemplo n.º 2
0
        public virtual object CreateContext(Widget w)
        {
            var b = (IHtml5CanvasBackend)w.GetBackend();

            var ctx = new Html5Context();

            if (b.Context != null)
            {
                ctx.Context = b.Context;
            }
            return(ctx);
        }
Exemplo n.º 3
0
 public Html5Context(Html5Context c) : this()
 {
     c.SaveTo(this, false);
 }