Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorRenderingWpf/Utils/SvgConvert.cs @ 12830

Last change on this file since 12830 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 594 bytes
Line 
1using System;
2using System.Text;
3using System.Windows;
4using System.Windows.Media;
5using System.Collections.Generic;
6
7using SharpVectors.Dom.Css;
8using SharpVectors.Dom.Svg;
9
10namespace SharpVectors.Renderers.Utils
11{
12    public static class SvgConvert
13    {
14        public static SvgPointF ToPoint(Point pt)
15        {
16            return new SvgPointF((float)pt.X, (float)pt.Y);
17        }
18
19        public static SvgRectF ToRect(Rect rect)
20        {
21            return new SvgRectF((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height);
22        }
23    }
24}
Note: See TracBrowser for help on using the repository browser.