Inheritance: SVGTransformable, ISVGDrawable
 public SvgLayer(StageCanvas canvas, string name)
     : base(canvas, name)
 {
     SvgElement = document.createElementNS(ToolUtils.SvgNamespace, "svg") as SVGSVGElement;
     Element    = new jQuery(SvgElement);
     Element.AppendTo(canvas.Element);
 }
Exemple #2
0
    /*-----------------------------------------------------------
     * Methods: StarProcess1
     * Use: ta bat dau doc du lieu de do vao SVGDocument
     * -------------------------------------------------------------*/
    public void StartProcess()
    {
        Profiler.BeginSample("SVG.Implement.StartProcess[CreateEmptySVGDocument]");
        CreateEmptySVGDocument();
        Profiler.EndSample();
        Profiler.BeginSample("SVG.Implement.StartProcess[GetRootElement]");
        SVGSVGElement _rootSVGElement = this._svgDocument.rootElement;

        Profiler.EndSample();
        Profiler.BeginSample("SVG.Implement.StartProcess[ClearCanvas]");
        this._graphics.SetColor(Color.white);
        Profiler.EndSample();
        Profiler.BeginSample("SVG.Implement.StartProcess[RenderSVGElement]");
        _rootSVGElement.Render();
        Profiler.EndSample();
        Profiler.BeginSample("SVG.Implement.StartProcess[RenderGraphics]");
        this._texture = _graphics.Render();
        Profiler.EndSample();
    }