示例#1
0
 public BrowserContext(SharpCanvas.Tests.Media.HTMLElement container)
 {
     // canvas = SharpCanvas.Host.StandaloneBootstrapper.Factory.CreateCanvasElement();
     canvas = new SharpCanvas.Browser.Media.HTMLCanvasElement();
     _ctx = canvas.getCanvas();
     this.container = container;
 }
示例#2
0
 public Animation(HTMLElement panel, int interval)
 {
     surface = panel;
     this.interval = interval;
     IsStarted = false;
     //this.label = label;
 }
示例#3
0
 public FlyingDragon(HTMLElement container)
 {
     this.container = container;
     _ctx = new CanvasRenderingContext2D(container, this, true);
     _ctx.translate(280, 200);
 }