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); }
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); }
public Html5Context(Html5Context c) : this() { c.SaveTo(this, false); }