Exemple #1
0
        public Window1()
        {
            InitializeComponent();

            //SVG svg = new SVG(@"c:\temp\jktest.svg");
            //SVG svg = r.LoadFile(@"c:\temp\tranberry_locked_exclamation_mark_-_padlock.svg");
            //SVG svg = r.LoadFile(@"c:\temp\molumen_red_square_error_warning_icon.svg");
            //SVG svg = r.LoadFile(@"c:\temp\peterm_penguin_with_a_shirt.svg");
            //SVG svg = r.LoadFile(@"c:\temp\zafx_tux-vache.svg");

            //computer-aj_aj_ashton_01
            SVGRender render = new SVGRender();
            //DrawingImage geometryImage = new DrawingImage(render.LoadDrawing(@"c:\temp\jktest.svg"));
            //DrawingImage geometryImage = new DrawingImage(render.LoadDrawing(@"c:\temp\molumen_red_square_error_warning_icon_1.svg"));
            DrawingGroup clip01 = render.LoadDrawing(@"c:\temp\ixia_logo-test.svg");
            //DrawingGroup clip01 = render.LoadDrawing(@"c:\temp\computer-aj_aj_ashton_01.svg");
            //DrawingGroup clip02 = render.LoadDrawing(@"c:\temp\molumen_red_square_error_warning_icon_1.svg");
            //DrawingGroup clip03 = render.LoadDrawing(@"c:\temp\peterm_penguin_with_a_shirt.svg");
            //DrawingImage geometryImage = new DrawingImage(drawing);
            //DrawingImage geometryImage = new DrawingImage(render.LoadDrawing(@"c:\temp\tranberry_locked_exclamation_mark_-_padlock.svg"));
            //DrawingImage geometryImage = new DrawingImage(render.LoadDrawing(@"c:\temp\peterm_penguin_with_a_shirt.svg"));
            //DrawingImage geometryImage = new DrawingImage(render.LoadDrawing(@"c:\temp\zafx_tux-vache.svg"));

            //m_canvas.AddDrawing(clip03);
            //m_canvas.AddDrawing(clip01);
            //m_canvas.AddDrawing(clip02);
        }
 void EnsureLoaded()
 {
     if (m_image != null)
     {
         return;
     }
     //Console.WriteLine("{0} - loading {1}", DateTime.Now.ToLongDateString(), Filename);
     SVGRender = new SVGRender();
     m_image   = SVGRender.LoadDrawing(FullPath);
 }
Exemple #3
0
 void EnsureLoaded()
 {
     try
     {
         if (_drawing != null)
         {
             return;
         }
         SVGRender = new SVGRender();
         _drawing  = SVGRender.LoadDrawing(FullPath);
     }
     catch (Exception ex)
     {
         if (_isLogged)
         {
             return;
         }
         _isLogged = true;
         Trace.TraceError("Exception Loading: " + this.FullPath);
         Trace.WriteLine(ex.ToString());
         Trace.WriteLine(string.Empty);
     }
 }
Exemple #4
0
 public void Reload()
 {
     _drawing = SVGRender.LoadDrawing(FullPath);
 }
Exemple #5
0
        public void SetImage(string svgFilename)
        {
            SVGRender render = new SVGRender();

            SetImage(render.LoadDrawing(svgFilename));
        }
 public void Reload()
 {
     m_image = SVGRender.LoadDrawing(FullPath);
 }
Exemple #7
0
 public void RenderToImage()
 {
     m_image   = null;
     SVGRender = new SVGRender();
     m_image   = SVGRender.LoadDrawing(m_svg);
 }
Exemple #8
0
 public void Reload()
 {
     //m_image = SVGRender.LoadDrawing(FullPath);
     m_image = SVGRender.LoadDrawing(m_svg);
 }